[Webkit-unassigned] [Bug 60317] Text is scaled in a stair-step pattern

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 18 08:28:56 PDT 2011


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





--- Comment #9 from Nikolas Zimmermann <zimmermann at kde.org>  2011-05-18 08:28:56 PST ---
Some background:

WebCore/platform/graphics/mac/FontCacheMac.mm:

FontPlatformData* FontCache::createFontPlatformData(const FontDescription& fontDescription, const AtomicString& family)
{
    NSFontTraitMask traits = fontDescription.italic() ? NSFontItalicTrait : 0;
    NSInteger weight = toAppKitFontWeight(fontDescription.weight());
    float size = fontDescription.computedPixelSize();

    NSFont *nsFont = [WebFontCache fontWithFamily:family traits:traits weight:weight size:size];
..

The font is always requested with the "computedPixelSize" font size, not the real floating-point font size.
The computedPixelSize is an integer value, not a float as might be suggested by reading the code.

I ran across this problem a while ago as well.
Levi, does that help?

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