[Poppler-bugs] [Bug 44412] New: Poppler is ignoring .otf fonts
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Jan 3 00:44:24 PST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=44412
Bug #: 44412
Summary: Poppler is ignoring .otf fonts
Classification: Unclassified
Product: poppler
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: minor
Priority: medium
Component: general
AssignedTo: poppler-bugs at lists.freedesktop.org
ReportedBy: ahyangyi at gmail.com
Created attachment 55066
--> https://bugs.freedesktop.org/attachment.cgi?id=55066
A patch that solves this bug
As we know, ttf and otf are essentially the same format with some different
conventions. Therefore, they should be treated alike.
In function [void GfxFont::findExtFontFile] in GfxFont.cc and
[GlobalParams::getDisplayFont], poppler is testing font's extension names.
However, poppler only tested ".ttf", ignoring .otf files.
This will cause pdfs with unembedded fonts being rendered poorly even if
fontconfig is configured properly, as long as the correct options have .otf
format.
To reproduce this problem, remove the URW++ type 1 fonts if you have any.
Configure fontforge to use Truetype/Opentype fonts like Liberation Fonts or Tex
Gyre Fonts to substitute the standard postscript fonts. Then, make sure the
suffices of these fonts are .otf. Then open a pdf with unembedded fonts, and
the bug should occur.
A simple patch that solves this problem is attached.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Poppler-bugs
mailing list