Hey I have this working, but I’m trying to add a method to update the font after it’s been created. From testing I can see that the URIchTextBox::Font is updated, but I can’t get the widget to rebuild to display it. Heres the function I’m trying to use:
void URichTextBox::SetFont(FSlateFontInfo InFontInfo)
{
URichTextBox::Font = InFontInfo;
URichTextBox::SynchronizeProperties();
URichTextBox::RebuildWidget();
}
It seems like SynchroniseProperties() or RebuildWidget() should be updating the font, but it’s like the decorators only ever use the first font they’re initialised with. I’ve also noticed in the BP editor that the updated font doesn’t apply until you hit ‘compile’, which I guess rebuilds the widget.
Can anyone offer any direction on this?