[Font] Getting font folder on all platforms
Tourist
gravatar at gravatar.com
Fri Sep 6 09:05:42 PDT 2013
On Thursday, 5 September 2013 at 19:48:07 UTC, 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.
Windows: call SHGetKnownFolderPath with FOLDERID_Fonts as rfid.
http://msdn.microsoft.com/en-us/library/windows/desktop/bb762188%28v=vs.85%29.aspx
More information about the Digitalmars-d-learn
mailing list