[Poppler-bugs] [Bug 94054] pdftoppm's raster of one shows up incorrectly (and oddly narrow)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Feb 11 12:28:29 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=94054

Thomas Freitag <Thomas.Freitag at alfa.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|NOTOURBUG                   |---

--- Comment #2 from Thomas Freitag <Thomas.Freitag at alfa.de> ---
Sorry for closing this bug too fast. After Your hints and a deeper
investigation I encountered that it is a poppler bug:

The chars displayed wrong were set in Arial-Bold with a size of round about 8
pt, so freetype and therefore poppler should be able to render them much
better.

The problem was the following: If poppler encounters that a font has to be
substituted by an external font it tries to check if the font matrix has to be
adjusted: if real font is substantially narrower than substituted font, reduce
the font size accordingly. This is done by the comparison of the expected PDF
width of the character 'm' and the width of the character 'm' in the
substituted font. Unfortunately the PDF font doesn't include the width of the
letter 'm' (code 106), it just includes 

/FirstChar 32
/LastChar 89

Therefore we need another sanitize check: if the PDF width for 'm' is not
included.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20160211/7aca6be8/attachment.html>


More information about the Poppler-bugs mailing list