Hi there
I have been having issues recently with loading fonts - I tried to load in a .ttf from the internet, and noticed there was no change in the font. I tried converting this to an egg file and loading that in, and although it works in pview, it does not change the visual representation of the font.
I am using the following code section to load the font. Please excuse the use of Wingdings, I was trying to get something visually distinct.
m_tfScoreFont = FontPool::load_font("/e/Project/models/WINGDNG2.TTF");
The font doesn’t throw up any errors to say it has failed to load, and I can still use the font (Although it appears to have some form of default font it loads, as I can still render text). As a result, I am not sure what I am doing wrong. I have tried specifying FontPool::load_font(“WINGDNG2.TTF”), and several other variations but have had no luck.
Is there anything I am missing?