check a font name if exists
Posted: Thu Jul 29, 2010 8:49 am
Hello
I have a console program which gets a font name by command line and should build some pre text as image with that font. The problem is that LoadFont() loads a font if it is really there or not (this should work on ms windows). So i am searching for a possibility to check if a given font name real exists. PureBasic supports the fine font requester which knows all real fonts. So it should be possible to know if a font name exists. But i can not find the point to check that. And i did not found a PureBasic command to get that. Maybe i have tomatoes on my eyes and need some wipe up.
It should be possible to check a font name although on a gui program silently, i think. Has someone a idea or a little help for me? Thanks.
Maybe a command GetFontRealName() like discussed in http://www.purebasic.fr/english/viewtop ... me#p325409 (but with font requester) would help (both, with requester and without).
Sigi
I have a console program which gets a font name by command line and should build some pre text as image with that font. The problem is that LoadFont() loads a font if it is really there or not (this should work on ms windows). So i am searching for a possibility to check if a given font name real exists. PureBasic supports the fine font requester which knows all real fonts. So it should be possible to know if a font name exists. But i can not find the point to check that. And i did not found a PureBasic command to get that. Maybe i have tomatoes on my eyes and need some wipe up.
Maybe a command GetFontRealName() like discussed in http://www.purebasic.fr/english/viewtop ... me#p325409 (but with font requester) would help (both, with requester and without).
Sigi