Math symbols rendered as squares
Submitted by Maris Nartiss
Assigned to poppler-bugs
Link to original bug (#104661)
Description
Created attachment 136784 Test PDF (starting from page 5)
In one PDF file math symbols are rendered as squares (see 5th page of attached PDF). On the same system FF built in PDF viewer and MuPDF have no problems with rendering. Inkscape import gives mixed results – poppler/Cairo backend displays squares, but "built in (poppler derived)" backend imports file just fine (with or without "font replacement override").
I tested most of PDF samples I found in bugzilla and none of math symbols related ones had any issues. Although it is not a proof, it hints on quite good work of poppler finding a correct font for other PDFs. Thus submitting this "specimen" for examination.
Tested with: poppler-0.62.0-r1 poppler-data-0.4.8 Gentoo ~AMD64
pdffonts math_symbol_render_issue.pdf name type encoding emb sub uni object ID
TimesNewRoman TrueType WinAnsi no no no 6 0 TimesNewRoman,Bold TrueType WinAnsi no no no 8 0 TimesNewRoman,Italic TrueType WinAnsi no no no 12 0 TimesNewRoman,BoldItalic TrueType WinAnsi no no no 20 0 Symbol TrueType Symbol no no no 22 0 Symbol,Italic TrueType Symbol no no no 33 0 PADFIF+MTExtra TrueType WinAnsi yes yes no 42 0 Arial TrueType WinAnsi no no no 94 0 CourierNew TrueType WinAnsi no no no 116 0
pdffonts -subst math_symbol_render_issue.pdf name object ID substitute font substitute font file
TimesNewRoman 6 0 Liberation Serif /usr/share/fonts/liberation-fonts/LiberationSerif-Regular.ttf TimesNewRoman,Bold 8 0 Liberation Serif Bold /usr/share/fonts/liberation-fonts/LiberationSerif-Bold.ttf TimesNewRoman,Italic 12 0 Liberation Serif Italic /usr/share/fonts/liberation-fonts/LiberationSerif-Italic.ttf TimesNewRoman,BoldItalic 20 0 Liberation Serif Bold Italic /usr/share/fonts/liberation-fonts/LiberationSerif-BoldItalic.ttf Symbol 22 0 Liberation Sans /usr/share/fonts/liberation-fonts/LiberationSans-Regular.ttf Symbol,Italic 33 0 Liberation Sans Italic /usr/share/fonts/liberation-fonts/LiberationSans-Italic.ttf Arial 94 0 Liberation Sans /usr/share/fonts/liberation-fonts/LiberationSans-Regular.ttf CourierNew 116 0 Liberation Mono /usr/share/fonts/liberation-fonts/LiberationMono-Regular.ttf
Attachment 136784, "Test PDF (starting from page 5)":
math_symbol_render_issue.pdf