Changeset 86081 in webkit


Ignore:
Timestamp:
May 9, 2011 12:40:17 PM (13 years ago)
Author:
andreas.kling@nokia.com
Message:

2011-05-09 Andreas Kling <kling@webkit.org>

Reviewed by Kenneth Rohde Christiansen.

[Qt] Simple small-caps text is displayed in uniform size.
https://bugs.webkit.org/show_bug.cgi?id=60492

Covered by existing tests.

  • platform/graphics/qt/FontPlatformDataQt.cpp: (WebCore::FontPlatformData::FontPlatformData): In the FontPlatformData constructor used by SimpleFontData::scaledFontData(), pass the pixel size to both QFont and QRawFont to make small caps and emphasis marks have the correct size when rendered through the fast font path.
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r86078 r86081  
     12011-05-09  Andreas Kling  <kling@webkit.org>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] Simple small-caps text is displayed in uniform size.
     6        https://bugs.webkit.org/show_bug.cgi?id=60492
     7
     8        Covered by existing tests.
     9
     10        * platform/graphics/qt/FontPlatformDataQt.cpp:
     11        (WebCore::FontPlatformData::FontPlatformData): In the FontPlatformData constructor
     12        used by SimpleFontData::scaledFontData(), pass the pixel size to both QFont and QRawFont
     13        to make small caps and emphasis marks have the correct size when rendered through
     14        the fast font path.
     15
    1162011-05-09  Andreas Kling  <kling@webkit.org>
    217
  • trunk/Source/WebCore/platform/graphics/qt/FontPlatformDataQt.cpp

    r85853 r86081  
    9595    m_data->oblique = other.m_data->oblique;
    9696    m_data->font.setPixelSize(size);
     97    m_data->rawFont.setPixelSize(size);
    9798    m_data->size = size ? m_data->font.pixelSize() : 0;
    9899}
Note: See TracChangeset for help on using the changeset viewer.