Commit 08b05eb
committed
fix(ci): copy Libertinus OTFs into fontconfig's scan path
The preflight check from the previous commit caught it before the
PDF build started:
MISSING font: Libertinus Serif
MISSING font: Libertinus Sans
ERROR: required font not visible to fontconfig.
Root cause: texlive-fonts-extra installs LibertinusSerif-Regular.otf
and siblings into /usr/share/texlive/texmf-dist/fonts/opentype/
public/libertinus-fonts/, but on ubuntu-latest the texlive package
does NOT install a fontconfig snippet that exposes TeX Live's font
tree to fc-list. So `fc-cache -f` alone won't make Libertinus
visible by family name even though the files are on disk.
Fix: after apt-installing texlive-fonts-extra, locate the Libertinus
OTF files via kpsewhich (version-agnostic) and copy them into
/usr/local/share/fonts/libertinus/, which fontconfig always scans.
Then `fc-cache -f` makes fontspec resolve 'Libertinus Serif' /
'Libertinus Sans' / 'Libertinus Mono' / 'Libertinus Math' by family
name.
The preflight verification from the previous commit stays — it now
serves as a post-condition check that the copy actually worked.1 parent 23c220b commit 08b05eb
1 file changed
Lines changed: 17 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
92 | 104 | | |
93 | 105 | | |
94 | 106 | | |
| |||
0 commit comments