[Poppler-bugs] [Bug 36536] Non-embedded standard fonts in PDF files are not displayed/rendered correctly

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Feb 15 02:57:57 PST 2012


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

--- Comment #1 from Adrian Johnson <ajohnson at redneon.com> 2012-02-15 02:57:57 PST ---
Created attachment 57075
  --> https://bugs.freedesktop.org/attachment.cgi?id=57075
adjust substitute font width using first character in each string

There are two problems here:
 1) The "hello world" text is too narrow
 2) The "www.pdflib.com" text has spike on each path segment.

The first problem is caused by the code that adjusts the size of text drawn with a substituted font to match the width in the pdf file. This code matches the
width of the letter 'm' in the font with the width in the pdf file. The problem in this case is the pdf file has bogus widths for characters not used included
the letter 'm'. The attached patch fixes this by using the first letter of each string to set the font size.

The second problem is a cairo bug. In this case the pdf file is stroking the outline of a Type 3 font. Each glyph in the Type 3 font strokes a path. Cairo
needs to implement stroke to path to make this work correctly.

-- 
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