Skip to content

Commit

Permalink
fontconfig: detect user installed fonts on Windows 10
Browse files Browse the repository at this point in the history
Windows 10 introduced user fonts, and is the preferred (and default) place to install fonts.
  • Loading branch information
rodlie committed Jul 20, 2020
1 parent 42f0edf commit 6e4665f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions global.pri
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,8 @@ FC_DEFAULT_FONTS += "<dir>/System/Library/Assets/com_apple_MobileAsset_Font5</di
# Windows
win32 {
FC_DEFAULT_FONTS += "<dir>WINDOWSFONTDIR</dir>"
# Windows 10 introduced user fonts, and is the preferred (and default) place to install fonts
FC_DEFAULT_FONTS += "<dir>~/AppData/Local/Microsoft/Windows/Fonts</dir>"
FC_CACHEDIR += "<cachedir>LOCAL_APPDATA_FONTCONFIG_CACHE</cachedir>"
}

Expand Down

0 comments on commit 6e4665f

Please sign in to comment.