Title: [248081] trunk/Source/WebCore/PAL
Revision
248081
Author
you...@apple.com
Date
2019-07-31 16:24:09 -0700 (Wed, 31 Jul 2019)

Log Message

Use CTFontCreateForCharactersWithLanguageAndOption if available instead of CTFontCreateForCharactersWithLanguage
https://bugs.webkit.org/show_bug.cgi?id=200241
<rdar://problem/53495386>

Build fix for older MacOS for which CTFontFallbackOption is not defined.
Unreviewed.


* pal/spi/cocoa/CoreTextSPI.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/PAL/ChangeLog (248080 => 248081)


--- trunk/Source/WebCore/PAL/ChangeLog	2019-07-31 23:01:43 UTC (rev 248080)
+++ trunk/Source/WebCore/PAL/ChangeLog	2019-07-31 23:24:09 UTC (rev 248081)
@@ -2,7 +2,18 @@
 
         Use CTFontCreateForCharactersWithLanguageAndOption if available instead of CTFontCreateForCharactersWithLanguage
         https://bugs.webkit.org/show_bug.cgi?id=200241
+        <rdar://problem/53495386>
 
+        Build fix for older MacOS for which CTFontFallbackOption is not defined.
+        Unreviewed.
+
+        * pal/spi/cocoa/CoreTextSPI.h:
+
+2019-07-31  Youenn Fablet  <you...@apple.com>
+
+        Use CTFontCreateForCharactersWithLanguageAndOption if available instead of CTFontCreateForCharactersWithLanguage
+        https://bugs.webkit.org/show_bug.cgi?id=200241
+
         Reviewed by Myles C. Maxfield.
 
         Add new SPI.

Modified: trunk/Source/WebCore/PAL/pal/spi/cocoa/CoreTextSPI.h (248080 => 248081)


--- trunk/Source/WebCore/PAL/pal/spi/cocoa/CoreTextSPI.h	2019-07-31 23:01:43 UTC (rev 248080)
+++ trunk/Source/WebCore/PAL/pal/spi/cocoa/CoreTextSPI.h	2019-07-31 23:24:09 UTC (rev 248081)
@@ -132,7 +132,9 @@
 bool CTFontDescriptorIsSystemUIFont(CTFontDescriptorRef);
 CTFontRef CTFontCreateForCSS(CFStringRef name, uint16_t weight, CTFontSymbolicTraits, CGFloat size);
 CTFontRef CTFontCreateForCharactersWithLanguage(CTFontRef currentFont, const UTF16Char *characters, CFIndex length, CFStringRef language, CFIndex *coveredLength);
+#if HAVE(CTFONTCREATEFORCHARACTERSWITHLANGUAGEANDOPTION)
 CTFontRef CTFontCreateForCharactersWithLanguageAndOption(CTFontRef currentFont, const UTF16Char *characters, CFIndex length, CFStringRef language, CTFontFallbackOption option, CFIndex *coveredLength);
+#endif
 CTFontRef CTFontCopyPhysicalFont(CTFontRef);
 
 extern const CFStringRef kCTUIFontTextStyleShortHeadline;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to