Changeset 181703 in webkit
- Timestamp:
- Mar 18, 2015, 11:12:39 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
platform/graphics/cocoa/FontCascadeCocoa.mm (modified) (1 diff)
-
platform/spi/cocoa/CoreTextSPI.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r181702 r181703 1 2015-03-18 Myles C. Maxfield <mmaxfield@apple.com> 2 3 Call CTFontSetRenderingParameters before rendering text 4 https://bugs.webkit.org/show_bug.cgi?id=142816 5 6 Reviewed by Darin Adler. 7 8 No new tests. 9 10 * platform/graphics/cocoa/FontCascadeCocoa.mm: 11 (WebCore::showGlyphsWithAdvances): 12 * platform/spi/cocoa/CoreTextSPI.h: 13 1 14 2015-03-18 Chris Dumez <cdumez@apple.com> 2 15 -
trunk/Source/WebCore/platform/graphics/cocoa/FontCascadeCocoa.mm
r181090 r181703 162 162 position.y += advances[i].height; 163 163 } 164 if (!platformData.isColorBitmapFont()) 164 if (!platformData.isColorBitmapFont()) { 165 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED > 101000 166 CTFontSetRenderingParameters(platformData.ctFont(), context); 167 #endif 165 168 CGContextShowGlyphsAtPositions(context, glyphs, positions.data(), count); 166 else169 } else 167 170 CTFontDrawGlyphs(platformData.ctFont(), glyphs, positions.data(), count, context); 168 171 CGContextSetTextMatrix(context, savedMatrix); 169 172 } else { 170 if (!platformData.isColorBitmapFont()) 173 if (!platformData.isColorBitmapFont()) { 174 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED > 101000 175 CTFontSetRenderingParameters(platformData.ctFont(), context); 176 #endif 171 177 #pragma clang diagnostic push 172 178 #pragma clang diagnostic ignored "-Wdeprecated-declarations" 173 179 CGContextShowGlyphsWithAdvances(context, glyphs, advances, count); 174 180 #pragma clang diagnostic pop 175 else181 } else 176 182 CTFontDrawGlyphs(platformData.ctFont(), glyphs, positions.data(), count, context); 177 183 } -
trunk/Source/WebCore/platform/spi/cocoa/CoreTextSPI.h
r179283 r181703 66 66 CTTypesetterRef CTTypesetterCreateWithUniCharProviderAndOptions(CTUniCharProviderCallback provide, CTUniCharDisposeCallback dispose, void* refCon, CFDictionaryRef options); 67 67 bool CTFontGetVerticalGlyphsForCharacters(CTFontRef, const UniChar characters[], CGGlyph glyphs[], CFIndex count); 68 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED > 101000 69 void CTFontSetRenderingParameters(CTFontRef, CGContextRef); 70 #endif 68 71 69 72 CTFontDescriptorRef CTFontDescriptorCreateForUIType(CTFontUIFontType, CGFloat size, CFStringRef language);
Note:
See TracChangeset
for help on using the changeset viewer.