Page 1 of 1

[2.1] MyGUI and FreeType

Posted: Thu Oct 11, 2018 8:39 pm
by Jay721
Hi!

MyGUI and freetype is working fine in the samples, however, when I integrate it into my project I'm getting this in the MyGUI.log

Code: Select all

ResourceTrueTypeFont: TrueType font 'DejaVuSansFont_15' disabled. Define MYGUI_USE_FREETYE if you need TrueType fonts
I've actually defined MYGUI_USE_FREETYPE in the preprocessor and still getting this issue. Any ideas?

Re: [2.1] MyGUI and FreeType

Posted: Fri Oct 12, 2018 7:30 am
by Daixiwen
Did you define it in your own code, or in MyGUI? I think it is an option you need to enable when you compile MyGUI itself and not your application. You must most probably do it from CMake.

Re: [2.1] MyGUI and FreeType

Posted: Fri Oct 12, 2018 9:43 am
by Slicky
I also have a feeling you have to make sure it is defined when building MyGui.

Re: [2.1] MyGUI and FreeType

Posted: Fri Oct 12, 2018 5:31 pm
by Jay721
Its definitely defined in MyGui. I also defined it in my code just in case.

Re: [2.1] MyGUI and FreeType

Posted: Fri Oct 12, 2018 6:34 pm
by Slicky
I just checked my build of MyGui. It is from the repository and created with CMake. I built with the preprocessor MYGUI_USE_FREETYPE and I don't get errors like that in my log. In my app it doesn't look like I have it defined but it is working although I'm working on a new 2.1 version so can't be 100% sure.

Re: [2.1] MyGUI and FreeType

Posted: Wed Oct 17, 2018 5:03 pm
by Jay721
Was using an old DLL, oops.