[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Get list of available TTF fonts in system?
From: |
Werner LEMBERG |
Subject: |
Re: [ft] Get list of available TTF fonts in system? |
Date: |
Thu, 24 Mar 2011 18:47:25 +0100 (CET) |
[Bitte nicht nur an mich schreiben, sondern stets auf der Liste
bleiben.]
>> To check a single file, open it with FreeType, then call
>> FT_IS_SCALABLE to test whether it is an outline font. However,
>> getting a list of file names is not the job of this library; you
>> must handle that by yourself.
>
> The latter one seems to be a bit strange for me. So do I manually
> have to check out /usr/local/fonts and its subdirectories to find
> out what is available?
Yes, but you should rather use a library which does this for you,
e.g. fontconfig. No need to reinvent the wheel.
Werner