Changeset 95070 in webkit


Ignore:
Timestamp:
Sep 13, 2011 6:58:25 PM (13 years ago)
Author:
bashi@chromium.org
Message:

WebFont followed tiny monospace text displays weird
https://bugs.webkit.org/show_bug.cgi?id=67996

Reviewed by Darin Adler.

Source/WebCore:

Always call wkSetCGFontRenderingMode() in Font::drawGlyphs() so that the rendering mode is set correctly.

Test: platform/mac/fast/text/webfont-after-tiny-monospace-text.html

  • platform/graphics/mac/FontMac.mm:

(WebCore::Font::drawGlyphs):

LayoutTests:

This test ensures that webfont followed tiny monospace text is displayed correctly.

  • platform/mac/fast/text/webfont-after-tiny-monospace-text-expected.png: Added.
  • platform/mac/fast/text/webfont-after-tiny-monospace-text-expected.txt: Added.
  • platform/mac/fast/text/webfont-after-tiny-monospace-text.html: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r95065 r95070  
     12011-09-13  Kenichi Ishibashi  <bashi@chromium.org>
     2
     3        WebFont followed tiny monospace text displays weird
     4        https://bugs.webkit.org/show_bug.cgi?id=67996
     5
     6        Reviewed by Darin Adler.
     7
     8        This test ensures that webfont followed tiny monospace text is displayed correctly.
     9
     10        * platform/mac/fast/text/webfont-after-tiny-monospace-text-expected.png: Added.
     11        * platform/mac/fast/text/webfont-after-tiny-monospace-text-expected.txt: Added.
     12        * platform/mac/fast/text/webfont-after-tiny-monospace-text.html: Added.
     13
    1142011-09-13  Tom Sepez  <tsepez@chromium.org>
    215
  • trunk/Source/WebCore/ChangeLog

    r95065 r95070  
     12011-09-13  Kenichi Ishibashi  <bashi@chromium.org>
     2
     3        WebFont followed tiny monospace text displays weird
     4        https://bugs.webkit.org/show_bug.cgi?id=67996
     5
     6        Reviewed by Darin Adler.
     7
     8        Always call wkSetCGFontRenderingMode() in Font::drawGlyphs() so that the rendering mode is set correctly.
     9
     10        Test: platform/mac/fast/text/webfont-after-tiny-monospace-text.html
     11
     12        * platform/graphics/mac/FontMac.mm:
     13        (WebCore::Font::drawGlyphs):
     14
    1152011-09-13  Tom Sepez  <tsepez@chromium.org>
    216
  • trunk/Source/WebCore/platform/graphics/mac/FontMac.mm

    r94897 r95070  
    209209    CGContextSetTextMatrix(cgContext, matrix);
    210210
    211     if (drawFont) {
    212         wkSetCGFontRenderingMode(cgContext, drawFont);
     211    wkSetCGFontRenderingMode(cgContext, drawFont);
     212    if (drawFont)
    213213        CGContextSetFontSize(cgContext, 1.0f);
    214     } else
     214    else
    215215        CGContextSetFontSize(cgContext, platformData.m_size);
    216216
Note: See TracChangeset for help on using the changeset viewer.