Home Tutorials Download Beta Store Forum Documentation KnowledgeBase Wiki Blog

ShiVa3D

Return to Game programming

Font not showing on components

All about the StoneScript

Font not showing on components

Postby law » 22 Jul 2007, 14:32

I created a font resource from my system font and tried to use it in my HUD

but no text is shown on the label. When I use th default font on the same

component, it works fine

Here is my font file

http://www.create-101.com/3d/Arial.fnt

and the fonts texture file

http://www.create-101.com/3d/Arial.tga<br><br>Post edited by: law, at: 2007/07/22 16:33
law
Fresh Boarder
Fresh Boarder
 
Posts: 6

Re:Font not showing on components

Postby NiCoX » 22 Jul 2007, 16:03

OK, I just tested your font, and it works well for me.

If the DefaultFont works, but another one not, I think that the problem can be the following one :

Image

The DefaultFont is certainly more thin than Arial, and your text is able to fit inside the component only with it.
I suggest to extend the width of the component, or to reduce the text height attribute of the component.<br><br>Post edited by: NiCoX, at: 2007/07/22 18:04
User avatar
NiCoX
Platinum Boarder
Platinum Boarder
 
Posts: 5643
Location: France

Re:Font not showing on components

Postby law » 22 Jul 2007, 19:07

Thanks, reducing the font height fixed it.
law
Fresh Boarder
Fresh Boarder
 
Posts: 6


Return to Game programming