Advertisement

Tolkien Fonts :)

Started by April 08, 2002 12:30 AM
14 comments, last by gameovercl 22 years, 10 months ago
i don''t get it, what is wrong with programmatically copying the font into the fonts directory? you could manually copy, or you could try something with one of the _exec functions, or something similar.

ewen
_DarkWIng_:
This is what I''m using in my entry.
Check out AddFontResource() and RemoveFontResource();
Advertisement
JohnBSmall : If I use ttf I can create fonts stexture of any size (1024x1024x32) from only about 50k long file. Compare that with +1Mb texture file os same size.

echeslack : I tried that first but somehow it doesn''t work.. I realy don''t know why.

Shannara : I''ll try that.

There are more worlds than the one that you hold in your hand...
You should never let your fears become the boundaries of your dreams.
*cough*

www.lmnopc.com/bitmapfontbuilder/

*cough*


ThomW
www.LMNOpc.com
installing fonts with your app is pretty simple, just do:


const char
*FILE_FONT_RESSOURCE_STRING="\
Data/Fonts/Rune_d.ttf|\
Data/Fonts/Rune_d1.ttf|\
Data/Fonts/Rune_d2.ttf|\
Data/Fonts/Quencap1.ttf|\
Data/Fonts/Quencap2.ttf|\
Data/Fonts/Quenya.ttf|\
Data/Fonts/Angerth.ttf\
"
;


and when you process the WM_CREATE message:

if(bNewUser){
AddFontResource(FILE_FONT_RESSOURCE_STRING);
SendMessage(HWND_BROADCAST,WM_FONTCHANGE,0,0);}


okee, cya


"Shadow of annoyance Ne''''er come hither! ...And when He falleth, He falleth like Lucifer, Ne''''er to ascend again..."


TOT
"Shadow of annoyance Ne''er come hither! ...And when He falleth, He falleth like Lucifer, Ne''er to ascend again..."
TOT
Dalkiel : Thanks! That works GREAT!

There are more worlds than the one that you hold in your hand...
You should never let your fears become the boundaries of your dreams.

This topic is closed to new replies.

Advertisement