Skip to content

Commit 5758f2d

Browse files
authored
fontconfig: detect user installed fonts on Windows 10 (#523)
Windows 10 introduced user fonts, and is the preferred (and default) place to install fonts.
1 parent dfb958e commit 5758f2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

global.pri

+2
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,8 @@ FC_DEFAULT_FONTS += "<dir>/System/Library/Assets/com_apple_MobileAsset_Font5</di
588588
# Windows
589589
win32 {
590590
FC_DEFAULT_FONTS += "<dir>WINDOWSFONTDIR</dir>"
591+
# Windows 10 introduced user fonts, and is the preferred (and default) place to install fonts
592+
FC_DEFAULT_FONTS += "<dir>~/AppData/Local/Microsoft/Windows/Fonts</dir>"
591593
FC_CACHEDIR += "<cachedir>LOCAL_APPDATA_FONTCONFIG_CACHE</cachedir>"
592594
}
593595

0 commit comments

Comments
 (0)