how i can change the size of a font?

Posted By: LWD

how i can change the size of a font? - 02/10/07 13:38

I created a hud for my game, but the font of the health is very small, how i can change the size of the font?
Thanks
Posted By: Scorpion

Re: how i can change the size of a font? - 02/10/07 13:41

if you use a bmp-font u have to paint a new one, if you use a truetype font you have to set the size in the font-definition:
"font name = "fontname", style, size;"
Posted By: xXxGuitar511

Re: how i can change the size of a font? - 02/10/07 17:15

bmap fonts use the scale_x; scale_y parameter

check the manual (I know we've all heard this a million times)
Posted By: Scorpion

Re: how i can change the size of a font? - 02/10/07 20:10

but then the font is pixeled....
Posted By: rvL_eXile

Re: how i can change the size of a font? - 02/10/07 20:24

Which Font do you use?

Here a String with Courier New Fnt:

Code:

font courier_font = "cour",0,16; //Courier New,Size 16

text Text_Definition // String definition
{
font = Courier_font;
Red = 255; //Color Settings for this Font
Green= 255; //Color Settings for this Font
Blue= 255; //Color Settings for this Font
layer = 2;
pos_x = 800; //Position Y 800 (right)
pos_y = 30; //Position Y 30 (Up)
layer=2;
strings = 5;
string = Your_String;
flags =narrow,;
}

string Your_String ="Hello, this is my String, Hope you like it ;)"



cYa Sebastian
Posted By: LWD

Re: how i can change the size of a font? - 02/11/07 14:03

Thanks a lot to all!
Posted By: JazzDude

Re: how i can change the size of a font? - 02/12/07 19:30

Sometimes it helps to add one or both of the following flags
if the font is a light color and appears against
various backgrounds.

ex: flags = shadow, outline;
© 2024 lite-C Forums