type1 fonts in sample fontconfig
David Carlisle
d.p.carlisle at gmail.com
Fri Apr 2 23:55:08 CEST 2021
TL/DR:
Should the sample fontconfig file suggest including type1 fonts?
<dir>/usr/local/texlive/2021/texmf-dist/fonts/type1</dir>
longer version...
I had a test file
\documentclass{article}
\usepackage{fontspec}
\newfontfamily{\nserif}{Noto Serif}
\begin{document}
{\nserif abc}
\end{document}
That worked in tl 2020 and failed in 2021 xelatex with
xdvipdfmx:fatal: Invalid font: -1 (0)
No output PDF file written.
)
Error 256 (driver return code) generating output;
file f2.pdf may not be valid.
Transcript written on f2.log.
This failed in linux and cygwin texlive 2021.
With a hint from Ulrike, that seems to be because dvipdfmx is loading the
type1 font from
/usr/local/texlive/2021/texmf-dist/fonts/type1/google/noto/NotoSerif-Regular.pfb
rather than the truetype version.
It's not entirely clear what changed (I literally just edited my local
fontconfig replacing 2020 by 2021) but deleting the type1 line and
re-running fc-cache fixed the issue.
as the fontconfig is (I think?) just for xelatex, is it useful to include
the type1 directory at all?
Possibly separately would it be possible for xdvipdfmx to only use the
type1 font if no matching truetype or opentype is found?
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-live/attachments/20210402/52cdc4e1/attachment.html>
More information about the tex-live
mailing list.