Changeset 40304 in webkit


Ignore:
Timestamp:
Jan 27, 2009 5:10:00 PM (15 years ago)
Author:
mitz@apple.com
Message:

Reviewed by Steve Falkenburg.

  • fix <rdar://problem/6524351> Text looks bad when font smoothing is forced off
  • platform/graphics/win/FontCGWin.cpp: (WebCore::Font::drawGlyphs): Changed to use GDI rather than Core Graphics if the client has turned font smoothing off.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r40303 r40304  
     12009-01-27  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Steve Falkenburg.
     4
     5        - fix <rdar://problem/6524351> Text looks bad when font smoothing is
     6          forced off
     7
     8        * platform/graphics/win/FontCGWin.cpp:
     9        (WebCore::Font::drawGlyphs): Changed to use GDI rather than Core
     10        Graphics if the client has turned font smoothing off.
     11
    1122009-01-27  Simon Fraser  <simon.fraser@apple.com>
    213
  • trunk/WebCore/platform/graphics/win/FontCGWin.cpp

    r39736 r40304  
    296296{
    297297    CGContextRef cgContext = graphicsContext->platformContext();
     298    bool shouldUseFontSmoothing = WebCoreShouldUseFontSmoothing();
    298299
    299300    if (font->platformData().useGDI()) {
    300301        static bool canUsePlatformNativeGlyphs = wkCanUsePlatformNativeGlyphs();
    301         if (!canUsePlatformNativeGlyphs || (graphicsContext->textDrawingMode() & cTextStroke)) {
     302        if (!canUsePlatformNativeGlyphs || !shouldUseFontSmoothing || (graphicsContext->textDrawingMode() & cTextStroke)) {
    302303            drawGDIGlyphs(graphicsContext, font, glyphBuffer, from, numGlyphs, point);
    303304            return;
     
    305306    }
    306307
    307     uint32_t oldFontSmoothingStyle = wkSetFontSmoothingStyle(cgContext, WebCoreShouldUseFontSmoothing());
     308    uint32_t oldFontSmoothingStyle = wkSetFontSmoothingStyle(cgContext, shouldUseFontSmoothing);
    308309
    309310    const FontPlatformData& platformData = font->platformData();
Note: See TracChangeset for help on using the changeset viewer.