Changeset 31424 in webkit
- Timestamp:
- Mar 28, 2008, 7:21:00 PM (17 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r31419 r31424 1 2008-03-28 David Hyatt <hyatt@apple.com> 2 3 Back out the Ahem font antialiasing hack, since it is now no longer required for LCD antialiased text 4 to match the reference rendering on Acid 3. 5 6 * platform/graphics/SimpleFontData.h: 7 * platform/graphics/mac/FontMac.mm: 8 (WebCore::Font::drawGlyphs): 9 * platform/graphics/mac/SimpleFontDataMac.mm: 10 (WebCore::SimpleFontData::platformInit): 11 * platform/graphics/win/FontCGWin.cpp: 12 (WebCore::Font::drawGlyphs): 13 * platform/graphics/win/SimpleFontDataCGWin.cpp: 14 (WebCore::SimpleFontData::platformInit): 15 * rendering/RenderBlock.cpp: 16 (WebCore::RenderBlock::positionNewFloats): 17 1 18 2008-03-28 Brady Eidson <beidson@apple.com> 2 19 -
trunk/WebCore/platform/graphics/SimpleFontData.h
r31322 r31424 162 162 #if PLATFORM(CG) 163 163 float m_syntheticBoldOffset; 164 bool m_allowFontSmoothing;165 164 #endif 166 165 -
trunk/WebCore/platform/graphics/mac/FontMac.mm
r31356 r31424 639 639 640 640 bool originalShouldUseFontSmoothing = wkCGContextGetShouldSmoothFonts(cgContext); 641 bool newShouldUseFontSmoothing = WebCoreShouldUseFontSmoothing() && font->m_allowFontSmoothing;641 bool newShouldUseFontSmoothing = WebCoreShouldUseFontSmoothing(); 642 642 643 643 if (originalShouldUseFontSmoothing != newShouldUseFontSmoothing) -
trunk/WebCore/platform/graphics/mac/SimpleFontDataMac.mm
r31333 r31424 149 149 150 150 m_syntheticBoldOffset = m_font.m_syntheticBold ? 1.0f : 0.f; 151 m_allowFontSmoothing = true;152 151 153 152 bool failedSetup = false; … … 258 257 } else 259 258 m_xHeight = [m_font.font() xHeight]; 260 261 // Workaround for strange CG antialiasing of the Ahem font. Limit to the Web font version.262 if (isCustomFont()) {263 #ifdef BUILDING_ON_TIGER264 RetainPtr<CFStringRef> fullName(AdoptCF, wkCopyFullFontName(m_font.cgFont()));265 #else266 RetainPtr<CFStringRef> fullName(AdoptCF, CGFontCopyFullName(m_font.cgFont()));267 #endif268 String nameStr(fullName.get());269 m_allowFontSmoothing = (nameStr != "Ahem");270 }271 259 } 272 260 -
trunk/WebCore/platform/graphics/win/FontCGWin.cpp
r31356 r31424 267 267 CGContextRef cgContext = graphicsContext->platformContext(); 268 268 269 uint32_t oldFontSmoothingStyle = wkSetFontSmoothingStyle(cgContext, font->m_allowFontSmoothing);269 uint32_t oldFontSmoothingStyle = wkSetFontSmoothingStyle(cgContext, true); 270 270 271 271 const FontPlatformData& platformData = font->platformData(); -
trunk/WebCore/platform/graphics/win/SimpleFontDataCGWin.cpp
r31327 r31424 54 54 { 55 55 m_syntheticBoldOffset = m_font.syntheticBold() ? 1.0f : 0.f; 56 m_allowFontSmoothing = true;57 56 m_scriptCache = 0; 58 57 m_scriptFontProperties = 0; … … 116 115 m_xHeight = scaleEmToUnits(iXHeight, m_unitsPerEm) * pointSize; 117 116 } 118 119 // Workaround for strange CG antialiasing of the Ahem font. Limit to the Web font version.120 if (isCustomFont()) {121 RetainPtr<CFStringRef> fullName(AdoptCF, CGFontCopyFullName(m_font.cgFont()));122 String nameStr(fullName.get());123 m_allowFontSmoothing = (nameStr != "Ahem");124 }125 117 } 126 118 -
trunk/WebCore/rendering/RenderBlock.cpp
r31250 r31424 2230 2230 fx = rightRelOffset(y, ro, false, &heightRemainingRight); 2231 2231 } 2232 fx = max(f->m_width, fx);2233 2232 f->m_left = fx - f->m_width; 2234 2233 o->setPos(fx - o->marginRight() - o->width(), y + o->marginTop());
Note:
See TracChangeset
for help on using the changeset viewer.