enableVariableWidth(font_here) not working
Displaying 1-4 of 4 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
chanman

ok I load up a font and enable variable width on it but it doesn't do it. is there a certain way to create the font in order for enableVariableWidth() to work?

my code:

font1 = loadFont("fonts\smallFont.gif");
enableVariableWidth(font1);


my font size is 8x11

Posted on 2004-05-13 20:23:22

chanman

ok nevermind it does work, but you can't have 1 pixel width fonts =P

If you do, leave a 1 pixel offset to make it work

Posted on 2004-05-13 20:38:23 (last edited on 2004-05-13 20:41:25)

blues_zodiakos

If you have a font file that's being naughty, as a last resort you can try the LoadFontEx command. It takes 3 arguments: File, Width, and Height. Rarely (never) the LoadFont command's auto width/height reader messes up.

Posted on 2004-05-14 21:22:52

chanman

cool, I do have a font file thats being naughty. Time to test that function out =)

Posted on 2004-05-14 21:26:41


Displaying 1-4 of 4 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.