Changeset 31322 in webkit
- Timestamp:
- Mar 26, 2008, 12:01:31 PM (17 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r31321 r31322 1 2008-03-26 David Hyatt <hyatt@apple.com> 2 3 Make the Ahem font antialias correctly on Acid3. 4 5 Reviewed by Dan 6 7 * platform/graphics/SimpleFontData.h: 8 * platform/graphics/mac/FontMac.mm: 9 (WebCore::Font::drawGlyphs): 10 * platform/graphics/mac/SimpleFontDataMac.mm: 11 (WebCore::SimpleFontData::platformInit): 12 * platform/graphics/win/FontCGWin.cpp: 13 (WebCore::Font::drawGlyphs): 14 * platform/graphics/win/SimpleFontDataCGWin.cpp: 15 (WebCore::SimpleFontData::platformInit): 16 1 17 2008-03-26 Mark Rowe <mrowe@apple.com> 2 18 -
trunk/WebCore/platform/graphics/SimpleFontData.h
r30441 r31322 162 162 #if PLATFORM(CG) 163 163 float m_syntheticBoldOffset; 164 bool m_allowFontSmoothing; 164 165 #endif 165 166 -
trunk/WebCore/platform/graphics/mac/FontMac.mm
r30997 r31322 609 609 610 610 bool originalShouldUseFontSmoothing = wkCGContextGetShouldSmoothFonts(cgContext); 611 bool newShouldUseFontSmoothing = WebCoreShouldUseFontSmoothing() ;611 bool newShouldUseFontSmoothing = WebCoreShouldUseFontSmoothing() && font->m_allowFontSmoothing; 612 612 613 613 if (originalShouldUseFontSmoothing != newShouldUseFontSmoothing) -
trunk/WebCore/platform/graphics/mac/SimpleFontDataMac.mm
r30997 r31322 257 257 } else 258 258 m_xHeight = [m_font.font() xHeight]; 259 260 // Workaround for strange CG antialiasing of the Ahem font. Limit to the Web font version. 261 if (isCustomFont()) { 262 RetainPtr<CFStringRef> fullName(AdoptCF, CGFontCopyFullName(m_font.cgFont())); 263 String nameStr(fullName.get()); 264 m_allowFontSmoothing = (nameStr != "Ahem"); 265 } 259 266 } 260 267 -
trunk/WebCore/platform/graphics/win/FontCGWin.cpp
r31246 r31322 267 267 CGContextRef cgContext = graphicsContext->platformContext(); 268 268 269 uint32_t oldFontSmoothingStyle = wkSetFontSmoothingStyle(cgContext );269 uint32_t oldFontSmoothingStyle = wkSetFontSmoothingStyle(cgContext, font->m_allowFontSmoothing); 270 270 271 271 const FontPlatformData& platformData = font->platformData(); -
trunk/WebCore/platform/graphics/win/SimpleFontDataCGWin.cpp
r30441 r31322 113 113 m_xHeight = scaleEmToUnits(iXHeight, m_unitsPerEm) * pointSize; 114 114 } 115 116 // Workaround for strange CG antialiasing of the Ahem font. Limit to the Web font version. 117 if (isCustomFont()) { 118 RetainPtr<CFStringRef> fullName(AdoptCF, CGFontCopyFullName(m_font.cgFont())); 119 String nameStr(fullName.get()); 120 m_allowFontSmoothing = (nameStr != "Ahem"); 121 } 115 122 } 116 123
Note:
See TracChangeset
for help on using the changeset viewer.