Wintermute Engine > Development

[iOS] problem with ttf fonts

(1/1)

lazygames:
Hi! I have a problem with using ttf-font under iOS/macOS.

--- Quote ---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.
--- End quote ---

How do this? I create comic.font file with this content:

--- Code: ---TTFONT
{
  SIZE = 12  
  FILENAME = "fonts\comic.ttf"
  COLOR { 100, 0, 0 }
  ALPHA = 255
}
--- End code ---

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!

Mnemonic:
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.

lazygames:
Thank's a lot!
I forget about this settings!

Navigation

[0] Message Index

Go to full version