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

Caolán McNamara <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #8 from Caolán McNamara <[email protected]> ---
The width of the pair-kerned text before the ... in 4-0 is laid out to be
1/1440 of an inch wider than in 3-6, so there's space for one less "." in the
rest of the line.

Digging into this, I'm satisfied that, in this example at least, the
positioning of text in the new layout is more correct than in the old layout.

The old layout in 3-6 in vcl/generic/glyphs/gcach_layout.cxx looped through the
glyphs using ints for the glyph widths, then called int nKernValue =
rFont.GetGlyphKernValue( nOldGlyphId, nGlyphIndex ); between each pair of
glyphs and applied that int amount of kerning to the width to get the next
glyph position. So it was working in rounded/truncated int values of kerning
values and glyph widths.

The new layout of 4-0 works in floats and operates (well icu does this for us)
with more accurate glyph widths and kerning values, and we only round the final
positions of all the glyphs to int *after* the kerning is applied.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to