Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: Question on TTF font.  (Read 2683 times)

0 Members and 1 Guest are viewing this topic.

Lion

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 101
    • View Profile
Question on TTF font.
« on: September 27, 2007, 09:16:15 PM »

In directory "fonts" I do the files: truetype.font and BREEZE.TTF.

TTFONT
{
  SIZE = 14 
  FACE = "BREEZE"
  FILENAME = "fonts\BREEZE.TTF"

  BOLD = FALSE
  ITALIC = FALSE
  UNDERLINE = FALSE
  STRIKE = FALSE
...
}

In the debugging mode all works, a font is set!!!

And when I do compile packages, does not work!!!

I put BREEZE.TTF in directory where is game.exe.

"You can either use one of the standard fonts provided with Windows, such as Arial or Times New Roman,
or you can distribute a custom font file (*.ttf) with your game. If you are distributing the ttf file,
make sure the file is NOT packed inside the game packages. You have to copy the font file to the game
directory, because WME uses Windows functions to render the text and Windows is, naturally, unable to
read data from inside WME's packages."

And however does not work, a font is not set. That can it be?

Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Question on TTF font.
« Reply #1 on: September 27, 2007, 09:41:22 PM »

The font needs to be in the right path. In your case, you reference the font by "fonts\breeze.ttf", therefore it must be in the game directory in the "fonts" subdirectory. And anyway, if you use WME 1.8, it will copy the font to the output directory for you.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Lion

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 101
    • View Profile
Re: Question on TTF font.
« Reply #2 on: September 28, 2007, 09:20:27 AM »

Thanks
Logged
 

Page created in 0.036 seconds with 20 queries.