You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is currently the user writeable font directory, accessible through UserDirs::font_dir, however, I can't seem to find one in BaseDirs. For reliably getting font file paths on the major platforms to use them for example in SDL, it's needed to get the paths to the system font directories as well.
As I see, the locations for fonts on the major platforms are:
Linux: /usr/share/fonts and subdirectories, determined through fc-liston my system (Arch Linux)
Mac OS X: /System/Library/Fonts and /Library/Fonts, taken from Wikipedia
Windows: C:\Windows\Fonts, found after using find . -type d -iname '*font*' in a clean new Wineprefix
It might be appropiate to return them as a Vec<&Path>, as on Linux and Mac OS X, there are multiple appropiate folders (on Linux the subdirectories of /usr/share/fonts, on Mac OS X /System/Library/Fonts and /Library/Fonts).
Unfortunately I don't have a real system to check if the Mac OS X and Windows paths are right.
The text was updated successfully, but these errors were encountered:
There is currently the user writeable font directory, accessible through
UserDirs::font_dir
, however, I can't seem to find one inBaseDirs
. For reliably getting font file paths on the major platforms to use them for example in SDL, it's needed to get the paths to the system font directories as well.As I see, the locations for fonts on the major platforms are:
/usr/share/fonts
and subdirectories, determined throughfc-list
on my system (Arch Linux)/System/Library/Fonts
and/Library/Fonts
, taken from WikipediaC:\Windows\Fonts
, found after usingfind . -type d -iname '*font*'
in a clean new WineprefixIt might be appropiate to return them as a
Vec<&Path>
, as on Linux and Mac OS X, there are multiple appropiate folders (on Linux the subdirectories of/usr/share/fonts
, on Mac OS X/System/Library/Fonts
and/Library/Fonts
).Unfortunately I don't have a real system to check if the Mac OS X and Windows paths are right.
The text was updated successfully, but these errors were encountered: