[OS X] Migrate off of CTFontSetRenderingParameters()
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Aug 2015 00:42:34 +0000 (00:42 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Aug 2015 00:42:34 +0000 (00:42 +0000)
https://bugs.webkit.org/show_bug.cgi?id=148113

Reviewed by Lucas Forschler.

Instead, use CTFontSetRenderingStyle().

No new tests because there is no behavior change.

* platform/spi/cocoa/CoreTextSPI.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@188559 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/spi/cocoa/CoreTextSPI.h

index a5cbdb3..d2478b4 100644 (file)
@@ -1,3 +1,16 @@
+2015-08-17  Myles C. Maxfield  <mmaxfield@apple.com>
+
+        [OS X] Migrate off of CTFontSetRenderingParameters()
+        https://bugs.webkit.org/show_bug.cgi?id=148113
+
+        Reviewed by Lucas Forschler.
+
+        Instead, use CTFontSetRenderingStyle().
+
+        No new tests because there is no behavior change.
+
+        * platform/spi/cocoa/CoreTextSPI.h:
+
 2015-08-17  Alex Christensen  <achristensen@webkit.org>
 
         Build Debug Suffix on Windows with CMake
index ba76025..2606c26 100644 (file)
@@ -66,11 +66,7 @@ CTLineRef CTLineCreateWithUniCharProvider(CTUniCharProviderCallback provide, CTU
 CTTypesetterRef CTTypesetterCreateWithUniCharProviderAndOptions(CTUniCharProviderCallback provide, CTUniCharDisposeCallback dispose, void* refCon, CFDictionaryRef options);
 bool CTFontGetVerticalGlyphsForCharacters(CTFontRef, const UniChar characters[], CGGlyph glyphs[], CFIndex count);
 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED > 101000
-#if defined(CORETEXT_HAS_CTFontSetRenderingStyle) && CORETEXT_HAS_CTFontSetRenderingStyle == 1
 bool CTFontSetRenderingStyle(CTFontRef, CGContextRef, CGFontRenderingStyle* originalStyle, CGSize* originalDilation);
-#else
-void CTFontSetRenderingParameters(CTFontRef, CGContextRef);
-#endif
 #endif
 
 CTFontDescriptorRef CTFontDescriptorCreateForUIType(CTFontUIFontType, CGFloat size, CFStringRef language);