Changeset 40304 in webkit
- Timestamp:
- Jan 27, 2009 5:10:00 PM (15 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r40303 r40304 1 2009-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 1 12 2009-01-27 Simon Fraser <simon.fraser@apple.com> 2 13 -
trunk/WebCore/platform/graphics/win/FontCGWin.cpp
r39736 r40304 296 296 { 297 297 CGContextRef cgContext = graphicsContext->platformContext(); 298 bool shouldUseFontSmoothing = WebCoreShouldUseFontSmoothing(); 298 299 299 300 if (font->platformData().useGDI()) { 300 301 static bool canUsePlatformNativeGlyphs = wkCanUsePlatformNativeGlyphs(); 301 if (!canUsePlatformNativeGlyphs || (graphicsContext->textDrawingMode() & cTextStroke)) {302 if (!canUsePlatformNativeGlyphs || !shouldUseFontSmoothing || (graphicsContext->textDrawingMode() & cTextStroke)) { 302 303 drawGDIGlyphs(graphicsContext, font, glyphBuffer, from, numGlyphs, point); 303 304 return; … … 305 306 } 306 307 307 uint32_t oldFontSmoothingStyle = wkSetFontSmoothingStyle(cgContext, WebCoreShouldUseFontSmoothing());308 uint32_t oldFontSmoothingStyle = wkSetFontSmoothingStyle(cgContext, shouldUseFontSmoothing); 308 309 309 310 const FontPlatformData& platformData = font->platformData();
Note: See TracChangeset
for help on using the changeset viewer.