Wintermute Engine Forum
Wintermute Engine => WME Lite => Development => Topic started by: lazygames on June 06, 2011, 10:34:59 AM
-
Hi! I have a problem with using ttf-font under iOS/macOS.
However, on iOS the engine is not able to access the system font directory, for that reason you MUST include .ttf files with the iOS version of your game.
How do this? I create comic.font file with this content:
TTFONT
{
SIZE = 12
FILENAME = "fonts\comic.ttf"
COLOR { 100, 0, 0 }
ALPHA = 255
}
if launch wmelite on windows - everything ok! Window object loading and text on screen.
if launch on iOS (macOs too) - Game.LoadWindow return null.
Any ideas where is the my wrong?
P.S. I try use bitmap font - everything work's good!
-
You must ensure that the .ttf file is compiled in the game package. To do so, open the project settings in ProjectMan, go to the "Filters" tab, and remove the *.ttf extension from the "Copy as is" field. Ideally move *.ttf to the "Do not compress" field instead, so that the font can be accessed faster.
-
Thank's a lot!
I forget about this settings!