[Webkit-unassigned] [Bug 20606] a fractional value of the css letter-spacing property is not rendered as expected

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 16 07:00:17 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=20606





--- Comment #17 from david.m.i.g at gmail.com  2012-02-16 07:00:16 PST ---
Simply searching for "letter-spacing" and "letterSpacing" in the source lead to interesting results:

Source/WebCore/rendering/InlineFlowBox.cpp (line 833, cast to int)
rightGlyphOverflow -= min(0, (int)style->font().letterSpacing());

Source/WebCore/platforms/graphics/chromium/FontChromiumWin.cpp (lines 419 and 474, rounded value)
advances[i] = lroundf(horizontalOffset) - lastHorizontalOffsetRounded;

There is also the font class which has a m_letterSpacing property of type "short"
Source/WebCore/platforms/graphics/Font.h (line 259)
short m_letterSpacing;

I did not check every instances of the letter-spacing since it was just a way to get a sense of what is causing it.

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



More information about the webkit-unassigned mailing list