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

Linux xelatex and type1 font #448

Open
3 of 4 tasks
syvshc opened this issue Sep 1, 2021 · 2 comments
Open
3 of 4 tasks

Linux xelatex and type1 font #448

syvshc opened this issue Sep 1, 2021 · 2 comments

Comments

@syvshc
Copy link

syvshc commented Sep 1, 2021

Description

I'm an Arch Linux user, when I want to use \setmainfont{Libertinus Serif} to set main font. I straightly met an xdvipdfmx's error:

xdvipdfmx:fatal: Invalid font: -1 (0)

This will not happen on my Windows pc.

I also post it at tex.se: https://tex.stackexchange.com/questions/612718/using-other-fonts-caused-xdvipdfmxfatal-invalid-font-1

And I refered to #419 but I didn't find useful information.

Check/indicate

  • Relevant for XeTeX
  • Relevant for LuaTeX
  • Issue tracker has been searched for similar issues?
  • Links to <tex.stackexchange.com> discussion if appropriate

Minimal example demonstrating the issue

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Libertinus Serif}
\begin{document}
    Here are some lines to read. 
\end{document}

Further details

@syvshc
Copy link
Author

syvshc commented Sep 1, 2021

I read #419 again.

fontspec does not have anything to do with font lookup, it just uses whatever the engine provides.

It means that the xetex engine choose the type1 version font, not fontspec. So maybe I should ask xdvipdfmx that "Why xdvipdfmx can't deal with 'type1' font on linux?"

@davidcarlisle
Copy link
Member

davidcarlisle commented Sep 1, 2021 via email

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