Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: Can't get TTF to Display  (Read 2478 times)

0 Members and 1 Guest are viewing this topic.

CMK2901

  • Lurker
  • *
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 35
  • Zoidberg is afoot!
    • View Profile
    • CMK Studios
Can't get TTF to Display
« on: January 26, 2007, 08:32:34 AM »

There's probably just a stupid mistake somewhere; maybe someone else can catch it.

I've imported a .ttf font and created a .font file with the following definition:

Code: [Select]
TTFONT
{
  SIZE = 12
  FILENAME = "fonts\scifi2.ttf"

  COLOR { 0, 0, 0 }
  ALPHA = 255
}

The required font, "scifi2.ttf", is definitely in the fonts folder.  However, the game is using a default font when I preview it or use it in game.  Am I missing something?
Logged
CMK Studios
I don't think we're hearing the same voices.

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Can't get TTF to Display
« Reply #1 on: January 26, 2007, 08:50:13 AM »

You will also need to specify the typeface of the font (FACE = "something"), that is the "logical" name of the font. You can find the typeface name when opening the font in the font viewer in Windows.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

CMK2901

  • Lurker
  • *
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 35
  • Zoidberg is afoot!
    • View Profile
    • CMK Studios
Re: Can't get TTF to Display
« Reply #2 on: January 27, 2007, 01:21:45 AM »

Thanks a lot, it works now.
Logged
CMK Studios
I don't think we're hearing the same voices.
 

Page created in 0.034 seconds with 20 queries.