[Font] Getting font folder on all platforms
Justin Whear
justin at economicmodeling.com
Thu Sep 5 12:59:20 PDT 2013
On Thu, 05 Sep 2013 21:48:03 +0200, Flamaros wrote:
> I am searching the right way to find fonts folder for each platforms
> (Windows, linux, macOS X)
>
> On Windows it's generally "C:\Windows\Fonts" but a direct access seems
> brutal, it's certainly expected to retrieve this path by using some
> register keys?
>
> Is someone know how it works for linux and/or macOS X?
>
> I need to be able to retrieve fastest as possible the right file from
> the font and family name.
For linux, see fontconfig:
http://en.wikipedia.org/wiki/Fontconfig
http://www.freedesktop.org/software/fontconfig/fontconfig-user.html
More information about the Digitalmars-d-learn
mailing list