As of April 2018, Windows 10 now installs some fonts through the Microsoft Store or Microsoft Office. These fonts are not installed in the usual font folder C:\Windows\Fonts
, but instead in protected folders under C:\Program Files\WindowsApps
. The fontspec
package can't search this path, so the fonts cannot be used.
Does anyone have a work-around?
Here's a MNWE, compiled with XeLaTeX in the MikTeX package:
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Georgia Pro}
\begin{document}
Hello, World!
\end{document}
The Georgia Pro
font is indeed installed on my machine, as I can use it from within Windows-native apps. Older fonts, such as Georgia
load without problems.
Best Answer
You can add the path to your fonts to your
localfonts2.conf
file. This can be found inC:\ProgramData\MiKTeX\2.9\fontconfig\config
and/orC:\Users\username\AppData\Roaming\MiKTeX\2.9\fontconfig\config
.