The Dink Network

fonts

May 5th 2003, 03:13 AM
spike.gif
Hi all,
How can I change Dink's font?
May 5th 2003, 03:27 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
Just this piece of code will do:
initfont("fontname");
The font must be in the windows font directory though, so if you want any other fonts, you'll have to send them with your DMod.
Arial is standard.
Oh, and I don't know if initfont() needs an extension like playmidi()
May 5th 2003, 03:42 AM
spike.gif
Okay, thanks magicman. I'll try it.
May 5th 2003, 06:38 AM
pig.gif

where do you have to put this line?
May 5th 2003, 08:56 AM
wizardg.gif
Paul
Peasant He/Him United States
 
Anyehere, you can even change it back and forth during the game. But if you want your whole d-mod to use a different font, presumably you'd put it in main.c or something.
May 7th 2003, 07:26 AM
spike.gif
Okay, this font thing works fine. (gonna use it for a weird DMOD in space, all new graphics so that's why I need new fonts)
May 7th 2003, 07:32 AM
pig.gif

but if people don't have the font on their' computer huh?i think you hsould put it in and they will have to put it in
c:\windows\fonts

correct me if i'm wrong (witch i probably am)
May 7th 2003, 07:41 AM
spike.gif
No, you are right. That does work! Tks