Bug 106849 - Poppler displays regular font instead of bold/italic font (base 14 fonts)
Summary: Poppler displays regular font instead of bold/italic font (base 14 fonts)
Status: RESOLVED MOVED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Mac OS X (All)
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-07 14:13 UTC by Brecht Machiels
Modified: 2018-08-21 11:14 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
PDF using the with base 14 Times font (4.63 KB, application/pdf)
2018-06-07 14:13 UTC, Brecht Machiels
Details
PDF rendered by pdftocairo (11.25 KB, image/png)
2018-06-07 14:14 UTC, Brecht Machiels
Details
PDF showing issue with base 14 Helvetica Bold Oblique font (8.83 KB, application/pdf)
2018-06-07 14:45 UTC, Brecht Machiels
Details

Description Brecht Machiels 2018-06-07 14:13:32 UTC
Created attachment 140065 [details]
PDF using the with base 14 Times font
Comment 1 Brecht Machiels 2018-06-07 14:14:16 UTC
Created attachment 140066 [details]
PDF rendered by pdftocairo
Comment 2 Brecht Machiels 2018-06-07 14:17:11 UTC
I see this behavior (only) for PDFs which make use of the (not-embedded) base 14 PDF fonts. Poppler uses Times-Roman to render both Times-Bold and Times-Italic.

$ pdffonts poppler_font_styles.pdf
name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
Times-Roman                          Type 1            Standard         no  no  no       4  0
Times-Italic                         Type 1            Standard         no  no  no       7  0
Times-Bold                           Type 1            Standard         no  no  no      10  0

The output of pdftocairo is attached:

$ pdftocairo -f 1 -singlefile -png poppler_font_styles.pdf poppler_font_styles

evince renders the PDF in the same way.


I would think this worked correctly in the past, but I can't be sure.
Comment 3 Jason Crain 2018-06-07 14:35:00 UTC
The file renders fine for me. What does `pdffonts -subst poppler_font_styles.pdf` show?

It depends on which fonts you have installed and how fontconfig is set up. This is most likely an issue with your fontconfig configuration, not poppler
Comment 4 Brecht Machiels 2018-06-07 14:44:03 UTC
Aha. I though that was a possibility, so I did some checks with fc-match. Those seemed to be alright. But the output of pdffonts -subst does provide a good hint:

$ pdffonts -subst poppler_font_styles.pdf
name                                 object ID substitute font                      substitute font file
------------------------------------ --------- ------------------------------------ ------------------------------------
Times-Roman                               4  0 Times Roman                          /System/Library/Fonts/Times.ttc
Times-Italic                              7  0 Times Negrita Cursiva                /System/Library/Fonts/Times.ttc
Times-Bold                               10  0 Times Negrita                        /System/Library/Fonts/Times.ttc


I don't have a "Times Negrita" font installed, as far as I can see. Nor do I remember ever encountering that font. I have no clue how to continue, however.

I am experiencing the same issue with a PDF that uses Helvetica Bold Oblique. But the output of pdffonts on that file looks normal though.

$ pdffonts -subst sphinx_minimal.pdf
name                                 object ID substitute font                      substitute font file
------------------------------------ --------- ------------------------------------ ------------------------------------
Helvetica-Bold                            4  0 Helvetica Bold                       /System/Library/Fonts/Helvetica.ttc
Helvetica-BoldOblique                     7  0 Helvetica Bold Oblique               /System/Library/Fonts/Helvetica.ttc
Times-Roman                              14  0 Times Roman                          /System/Library/Fonts/Times.ttc
Times-Italic                             21  0 Times Negrita Cursiva                /System/Library/Fonts/Times.ttc
Comment 5 Brecht Machiels 2018-06-07 14:45:29 UTC
Created attachment 140067 [details]
PDF showing issue with base 14 Helvetica Bold Oblique font
Comment 6 Jason Crain 2018-06-07 15:02:41 UTC
I've not heard of .ttc files before. I'm not sure how poppler handles it if there are multiple font variants in a single file.
Comment 7 Brecht Machiels 2018-06-08 11:45:10 UTC
I think this may be related: https://tex.stackexchange.com/questions/395645/italic-went-rogue-in-my-document-what-happened . The macOS High Sierra update made changes to the fonts.
Comment 8 GitLab Migration User 2018-08-21 11:14:03 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/575.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.