Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Blue Gui - alternating fonts

Author
Message
The Old Man
21
Years of Service
User Offline
Joined: 24th Aug 2003
Location: Ct., USA
Posted: 13th Jun 2006 06:08
I would like to use different sizes of the same font, but I am having trouble . Do I create a font, then delete it and create it with the new font size everytime I want to use it? I tried this but it didn't seem to work. Maybe I did it worong. Does anyone have any code examples to do this?
Xolatron
18
Years of Service
User Offline
Joined: 12th Mar 2006
Location: The Star Forge Language: DBpro
Posted: 13th Jun 2006 19:41
Try creating a font for each size you will use at the start of your program:

couriernew10 = createFont("Courier New",10,0,0,0)
couriernew12 = createFont("Courier New",12,0,0,0)
couriernew14 = createFont("Courier New",14,0,0,0)
couriernew20 = createFont("Courier New",20,0,0,0)

But yes, once they have a size, it cannot be changed.

-Xol

Login to post a reply

Server time is: 2024-11-22 06:11:36
Your offset time is: 2024-11-22 06:11:36