[cairo-bugs] [Bug 28061] Evince prints some RTL documents scrambled

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed May 12 07:30:25 PDT 2010


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

--- Comment #3 from Adrian Johnson <ajohnson at redneon.com> 2010-05-12 07:30:24 PDT ---
Created an attachment (id=35594)
 View: https://bugs.freedesktop.org/attachment.cgi?id=35594
 Review: https://bugs.freedesktop.org/review?bug=28061&attachment=35594

patch

The problem is incorrect values in the widths array of the PDF font dictionary.
This only affects PDF output, not PS output. Depending on your distro your
version of evince may have the patch for printing in PDF format.

The cause of the incorrect widths is that currently cairo is using the glyph
advances in font units in the PDF output. This works for the majority of Type 1
fonts that use a 1/1000 glyph scale as this is also the scale used for the
widths array by PDF. The PDF in comment 0 contains a Type 1 font with 1/1200
scale. As a result spacing in strings of glyphs is increased. Each time a new
string of glyphs starts at a fixed position it partially overlaps the previous
string.

Behdad, could you check that the use of linearHoriAdvance in the attached fix
is correct.

CFF fonts also have the same problem and require the scaling fix already used
for TrueType fonts.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the cairo-bugs mailing list