Bug#801339: fonts-texgyre: missing glyphs when viewing PDFs via poppler
Hilmar Preuße wrote:
> Am 08.10.2015 um 20:52 teilte Jim Paris mit:
>
> Hi Jim,
>
> > When viewing PDFs that do not embed Helvetica, the μ (U+03BC)
> > character does not render correctly when fonts-texgyre is installed.
> > For example, this PDF: http://jim.sh/~jim/tmp/bugs/tps62120.pdf
> >
> > With fonts-texgyre (20150923-1) installed, glyphs are missing:
> >
> For any reason that bug was invisible to us, sorry late response.
>
> Your example URL is invalid meanwhile: are you able to reproduce the
> issue w/ latest fonts-texgyre installed? If yes, could you provide a new
> example or a TeX source code?
I've restored the link.
I just reinstalled fonts-texgyre and I do not currently see this
problem (xpdf 3.04-13, fonts-texgyre 20180621-3). However, I think
this may be because some other system configuration has changed,
because "TeXGyreHeros" is no longer the substitute font that poppler
chooses:
$ pdffonts -subst tps62120.pdf
name object ID substitute font substitute font file
------------------------------------ --------- ------------------------------------ ------------------------------------
Arial-BoldMT 81 0 Arial Negreta /usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf
ArialMT 83 0 DejaVu Sans /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
Arial-ItalicMT 101 0 Arial Cursiva /usr/share/fonts/truetype/msttcorefonts/Arial_Italic.ttf
Arial-BoldItalicMT 401 0 Arial Negreta cursiva /usr/share/fonts/truetype/msttcorefonts/Arial_Bold_Italic.ttf
Helvetica 889 0 NimbusSans-Regular /usr/share/fonts/opentype/urw-base35/NimbusSans-Regular.otf
Helvetica-Bold 890 0 NimbusSans-Bold /usr/share/fonts/opentype/urw-base35/NimbusSans-Bold.otf
Helvetica 905 0 NimbusSans-Regular /usr/share/fonts/opentype/urw-base35/NimbusSans-Regular.otf
Helvetica-Bold 906 0 NimbusSans-Bold /usr/share/fonts/opentype/urw-base35/NimbusSans-Bold.otf
Arial-BoldItalicMT 973 0 Arial Negreta cursiva /usr/share/fonts/truetype/msttcorefonts/Arial_Bold_Italic.ttf
ArialMT 975 0 DejaVu Sans /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
Arial-BoldMT 977 0 Arial Negreta /usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf
Let's see...
If I check "fc-match", it seems "TeX Gyre Heros" is still high up on
the list, but "Nimbus Sans" beat it:
$ fc-match -s Helvetica | head -8
NimbusSans-Regular.otf: "Nimbus Sans" "Regular"
n019003l.pfb: "Nimbus Sans L" "Regular"
texgyreheros-regular.otf: "TeX Gyre Heros" "Regular"
Arial.ttf: "Arial" "Regular"
LiberationSans-Regular.ttf: "Liberation Sans" "Regular"
DejaVuSans.ttf: "DejaVu Sans" "Book"
DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold"
DejaVuSans-Oblique.ttf: "DejaVu Sans" "Oblique"
Those Nimbus fonts are coming from package fonts-urw-base35. If I
remove that package[*], then "TeX Gyre Heros" is back as the PDF font
substitution:
$ pdffonts -subst tps62120.pdf
name object ID substitute font substitute font file
------------------------------------ --------- ------------------------------------ ------------------------------------
Arial-BoldMT 81 0 Arial Negreta /usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf
ArialMT 83 0 DejaVu Sans /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
Arial-ItalicMT 101 0 Arial Cursiva /usr/share/fonts/truetype/msttcorefonts/Arial_Italic.ttf
Arial-BoldItalicMT 401 0 Arial Negreta cursiva /usr/share/fonts/truetype/msttcorefonts/Arial_Bold_Italic.ttf
Helvetica 889 0 TeXGyreHeros-Regular /usr/share/texmf/fonts/opentype/public/tex-gyre/texgyreheros-regular.otf
Helvetica-Bold 890 0 TeXGyreHeros-Bold /usr/share/texmf/fonts/opentype/public/tex-gyre/texgyreheros-bold.otf
Helvetica 905 0 TeXGyreHeros-Regular /usr/share/texmf/fonts/opentype/public/tex-gyre/texgyreheros-regular.otf
Helvetica-Bold 906 0 TeXGyreHeros-Bold /usr/share/texmf/fonts/opentype/public/tex-gyre/texgyreheros-bold.otf
Arial-BoldItalicMT 973 0 Arial Negreta cursiva /usr/share/fonts/truetype/msttcorefonts/Arial_Bold_Italic.ttf
ArialMT 975 0 DejaVu Sans /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
Arial-BoldMT 977 0 Arial Negreta /usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf
And the μ glyph is once again missing from my PDF.
So I do still believe the fonts-texgyre package does have some
encoding or other issue.
Jim
[*] I used "dpkg --force-depends -r fonts-urw-base35" to remove it,
because I have other packages that depend on it that I didn't want to
mess with. But poppler and xpdf were not among the packages that
depended on fonts-urw-base35.
Reply to: