1 registered members (BrainSailor),
862
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Font color
[Re: VeT]
#264661
05/07/09 13:07
05/07/09 13:07
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
Expert
|
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
You don't. What you change is the the text's color:
FONT* arial_font = "Arial#20b";
TEXT* mytext = { flags = SHOW; font = arial_font; string("this will be red"); red = 255; green = 60; blue = 60; }
Correct me if I'm wrong.
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
Re: Font color
[Re: VeT]
#264678
05/07/09 14:00
05/07/09 14:00
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
text.font = "Arial#21b"; or render text into a bitmap use it in a panel and scale it.
3333333333
|
|
|
Re: Font color
[Re: VeT]
#264691
05/07/09 15:06
05/07/09 15:06
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
maybe it's only for bitmap fonts. idk really, never tried scaling TTF text dynamically.
3333333333
|
|
|
Re: Font color
[Re: VeT]
#264973
05/09/09 08:57
05/09/09 08:57
|
Joined: Jul 2007
Posts: 959 nl
flits
User
|
User
Joined: Jul 2007
Posts: 959
nl
|
i never tried it but i gues you could create a array of fonts on start and then just selesct the font you want white the array (just a lot of memory use)
i think somthing like this
FONT* font_arr[100];
function create_font_startup() { var i = 0; while(i < 99) { ... font_arr[100] = font_create(... i+=1; } }
function main { var size = 0; while(size < 99) { my_text.font = font_arr[size]; size++; wait(5); }
"empty"
|
|
|
|