Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TeXLive fonts are not configured via fontconfig #10

Closed
maciej-lech opened this issue Sep 13, 2021 · 1 comment
Closed

TeXLive fonts are not configured via fontconfig #10

maciej-lech opened this issue Sep 13, 2021 · 1 comment

Comments

@maciej-lech
Copy link

Hi!

Fonts can not be found when using XeLaTeX+fontspec because they are not visible in the system via fontconfig.

Package fontspec Error: The font "Latin Modern Roman" cannot be found.

For immediate help type H <return>.
 ...                                              
                                                  
l.87 \setromanfont
                  {Latin Modern Roman}
No pages of output.

The possible solution is to link the fonconfig configuration file from the TeXLive installation path to the /etc/fonts/conf.d/ and reload the cache.

$ ln -s $(kpsewhich -var-value TEXMFSYSVAR)/fonts/conf/texlive-fontconfig.conf /etc/fonts/conf.d/65-texlive-fontconfig.conf
$ fc-cache

You may want to add it to the setup.sh. I can bake a PR if this solution is ok.

Best regards

@xu-cheng
Copy link
Owner

xu-cheng commented Sep 13, 2021

A PR is welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants