Hi all,
I just read this post in the Warzone forum :
http://forums.wz2100.net/viewtopic.php?f=19&t=1864
May I suggest you to use function glcAppendCatalog() rather than
copying the DejaVu Mono font into C:\Windows\font ?
Function glcAppendCatalog() allows your app to declare fonts which are
not stored in the system fonts directory(ies). In the particular case
of Warzone, this means that you should add a call like that :
glcAppendCatalog("C:\Program Files\Warzone 2100\fonts"); /* The path
is hardcoded in this example but it may adapted to your specific needs
*/
Note that it is the directory that you declare, not the fonts
themselves. GLC will then scan this directory for fonts and make them
available for later use with functions like glcNewFontFromFamily() or
others. The directory may also contain files which are not font files,
GLC will just ignore them. However you should store as few files as
possible in this directory since GLC will scan it each time Warzone
will be launched. The scan may take a long time if the files are too
numerous (several dozens). But I do not think this is a concern for
Warzone.
Finally, I know that the name of this function is not very explicit
but QuesoGLC sticks to SGI's GLC specs so I had no choice.
Regards,
Bertrand.
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev