Hi there
I have an issue that the displayed text of my widget is pretty blurry.
I created a widget that inherits from UUserWidget and add dynamically other
widgets that I created (slate widgets => SCompoundWidget).
The text of all the UI elements is pretty blurry (see screenshot).
What do I have to do so that the text is displayed sharply?
I tried to set the font manually in a UserWidget but it is also
quiet blurry:
UTextBlock* textBlock = WidgetTree->ConstructWidget<UTextBlock>(UTextBlock::StaticClass(), TEXT("PropertyGridTitle"));
textBlock->SetText(FText::FromString("Property Grid"));
UVerticalBoxSlot* headerSlot = WidgetFrame->AddChildToVerticalBox(textBlock);
headerSlot->SetHorizontalAlignment(EHorizontalAlignment::HAlign_Center);
headerSlot->SetVerticalAlignment(EVerticalAlignment::VAlign_Center);
FSlateChildSize textSize;
textSize.SizeRule = ESlateSizeRule::Automatic;
headerSlot->SetSize(textSize);
FSlateFontInfo fontInfo = FSlateFontInfo(FPaths::EngineContentDir() / TEXT("Slate/Fonts/Roboto-Bold.ttf"), 12);
textBlock->SetFont(fontInfo);
=====================================================
FText txt = FText::FromString(propValue->ToString());
return SNew(SEditableTextBox).
Text(txt).
OnTextCommitted(this, &SRSExpandableRow::OnNameCommited);