Don't see diference when use loadImageFont

BlitzMax Forums/BlitzMax Programming/Don't see diference when use loadImageFont

orgos(Posted 2008) [#1]
Hi

I'm using the function loadImageFont and setting some value to the style field of function for example:

Local font:TImageFont=LoadImageFont("C:\WINDOWS\Fonts\arial.ttf",36, BOLDFONT)

And I no see diference when use BoldFont and when set ITALICFONT the text look always the same way, no variations when changing the style of font.

Some idea?


Htbaa(Posted 2008) [#2]
Are you sure the font loaded properly?


orgos(Posted 2008) [#3]
Yes the font loaded properly, and the text display properly i use this example


Graphics 320 , 240

Local font:TImageFont=LoadImageFont("C:\WINDOWS\Fonts\arial.ttf", 36)
SetImageFont(font)
DrawText "Hello World",20,20
Flip

Repeat
Until KeyDown(KEY_ESCAPE) Or AppTerminate()

But I se the style value using the constant declaration that the help say.

I working on Windows XP Sp3


Brucey(Posted 2008) [#4]
Try ariali.ttf and arialbd.ttf for italic and bold versions.


orgos(Posted 2008) [#5]
Ok thats work, thanks.