Am Montag, 18. August 2008 00:29:00 schrieb Bertrand Coconnier: > 2008/8/17 Dennis Schridde <[EMAIL PROTECTED]>: > > Am Sonntag, 17. August 2008 19:49:33 schrieb Giel van Schijndel: > >> At Sunday 17 August, 12:08 Bertrand Coconier wrote: > >> > 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 ? > >> > >> We don't copy anything into C:\Windows\* at all. Please > >> note that it's a user suggesting that as a "fix". > > > > (To avoid that the CUSTOMFONTDIR patch to fontconfig was created and > > included upstream recently.) > > > >> > 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 */ > >> > >> Ah, I wasn't aware of that functionaility. We currently > >> use a fontconfig configuration file to add to our font directory. > > > > Does glcAppend...() make any fontconfig setting unnecessary? > > Yes. Actually QuesoGLC does all the Fontconfig settings behind the > scenes for you. You just call glcAppendCatalog() and that is all. No > need to modify the Fontconfig config files, you can keep the default > ones. > > > In that case it sounds like a viable option to refrain from using the new > > CUSTOMFONTDIR feature in fontconfig (added recently to provide a solution > > for our problem) and switching to interfacing with GLC only (aka not > > shiping non-default fontconfig config files). > > Of course only if glcAppend...() does not have any drawbacks compared to > > the current method. > > The only drawback that I can think of is what I told you in my initial > e-mail : QuesoGLC will scan the directory each time Warzone is > launched. This may be unnoticeable if there are only a few files in > the directory (which should be the case for Warzone's fonts > directory).
Per, will you do this, since you are currently working on patch #1095 ("Make
font configurable") anyway?
--Devurandom
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Warzone-dev mailing list [email protected] https://mail.gna.org/listinfo/warzone-dev
