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

libertinus missing font is not found and not automatically installed #448

Closed
cderv opened this issue Sep 2, 2024 · 0 comments
Closed

libertinus missing font is not found and not automatically installed #448

cderv opened this issue Sep 2, 2024 · 0 comments

Comments

@cderv
Copy link
Contributor

cderv commented Sep 2, 2024

From quarto-dev/quarto-cli#10655

---
title: "Quarto and libertinus"
output:
  pdf_document: 
    keep_tex: true
    latex_engine: xelatex
fontfamily: libertinus
---

## Quarto

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see <https://quarto.org>.

xelatex is important here, because it will lead to install libertinus and libertinus-otf. But this is not enough because none of those package are containing the fonts. libertinus-fonts should be installed.

Log message is

Requested font "[LibertinusSerif-Regular.otf]/OT" at 9.99997pt
 -> font not found, using "nullfont"

! Package fontspec Error: 
(fontspec)                The font "LibertinusSerif-Regular" cannot be
(fontspec)                found; this may be but usually is not a fontspec
(fontspec)                bug. Either there is a typo in the font name/file,
(fontspec)                the font is not installed (correctly), or there is
(fontspec)                a bug in the underlying font loading engine
(fontspec)                (XeTeX/luaotfload).

And this is not found by the error detection.

> tinytex::parse_packages("test.log")
I was unable to find any missing LaTeX packages from the error log test.log.

So we need to add this to the detection so that the font search is ran

tinytex::tlmgr_search("LibertinusSerif(-(Bold|Italic|Regular).*)?[.](tfm|afm|mf|otf|ttf)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant