I have a font /Content/Fonts/PT_Serif/PT-Serif_Bold_Font.uasset and I want to load it and use it for FSlateFontInfo.
Is this possible, or you can’t do it and you have to use the .ttf file for FSlateFontInfo?
I’m trying to set the font for a STextBlock. I made it work with the file format .ttf, but I want to use the .uasset file if it is possible.
I tried to use LoadObject<UFont>(nullptr, TEXT("/Game/Fonts/PT_Serif/PT-Serif_Bold_Font"));. but unfortunately you can’t use UFont for FSlateFontInfo.FontObject. Or maybe you can but you need to apply something to it?! Well that is why I need help with this.