Загрузка...

fontspec not finding fonts with neither XeLaTeX nor LuaLaTeX

fontspec not finding fonts with neither XeLaTeX nor LuaLaTeX

When `fontspec` fails to find fonts with XeLaTeX or LuaLaTeX, the issue typically lies in how these engines discover them, not `fontspec` itself. Both rely on the underlying operating system's font mechanisms. XeLaTeX primarily uses the OS's system-wide font cache (e.g., Windows Fonts folder, macOS Font Book, Linux `fontconfig`), requiring fonts to be correctly installed and registered. LuaLaTeX, while using `luaotfload`, also ultimately searches system-installed fonts or TeX's distribution font paths.

Common culprits include: the font not being properly installed system-wide (e.g., merely copied, not registered); using an incorrect or incomplete font name in `\setmainfont` (it needs the exact font name, not the filename); outdated font caches needing a refresh (e.g., `fc-cache -fv` on Linux, or restarting apps after installation); or the necessary font file type (.otf, .ttf) being absent or inaccessible. Always verify system installation, use its precise name, and ensure system-level font caches are up-to-date for proper discovery.

--------------

Video link: https://youtu.be/e4SACCNdNc0
Channel link: https://www.youtube.com/@HeyInsights

Have questions or thoughts? Leave a comment below. Thank you! 😃

Видео fontspec not finding fonts with neither XeLaTeX nor LuaLaTeX канала Hey Insights
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять