Game Development Community

Font does not appear properly

by Todd D. Degani · in Torque Game Engine · 04/22/2005 (8:12 am) · 3 replies

I am currently having a problem displaying a font on a GuiTextCtrl. The font that shows up is not the font that I have the type set to and I have no idea what font is getting displayed. I have created a separate profile for the control:
new GuiControlProfile (GuiMainTitleProfile)
{
   fontType = "SNOWWRITE Regular";
   fontColor = "0 0 0";
   autoSizeWidth = true;
   autoSizeHeight = true;
   fontSize = 36;
};

A gft file in the cache is generated for the font so it is getting parsed. I stepped through the code and it deosnt seem like anything strange is happening. Also stepping through the code I made sure that the snowwrite font was the font being used for the control. Any other font I have set the fontype to works (I have tried about 15 different ones). The only thing I can think of is that the gft is potentially being generated incorrectly.

Anyone else seen this problem? If someone could try out the font I have linked here and see if they can get it to display properly that would be great. Even if it doesn't display properly if you could post so that I know it just isnt something on my end. Thanks.

Snowwrite.zip

#1
04/27/2005 (9:39 am)
Just a friendly bump to see if someone could at least try this out for me and see if they can confirm the issue.
#2
04/27/2005 (9:54 am)
Would it be posible to accomplish what your trying to do using this resource?

edit: bad sentence
#3
04/27/2005 (10:05 am)
Well that resource takes a bitmapped font and the program linked in that resource doesnt generate a bitmap from this font very well.

I'm not trying to do anything fancy with the fonts, I'm just trying to get this font to display, which for the life of me I cant get it to do.