Changeset 248081 in webkit


Ignore:
Timestamp:
Jul 31, 2019 4:24:09 PM (5 years ago)
Author:
youenn@apple.com
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:
Location:
trunk/Source/WebCore/PAL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/PAL/ChangeLog

    r248071 r248081  
     12019-07-31  Youenn Fablet  <youenn@apple.com>
     2
     3        Use CTFontCreateForCharactersWithLanguageAndOption if available instead of CTFontCreateForCharactersWithLanguage
     4        https://bugs.webkit.org/show_bug.cgi?id=200241
     5        <rdar://problem/53495386>
     6
     7        Build fix for older MacOS for which CTFontFallbackOption is not defined.
     8        Unreviewed.
     9
     10        * pal/spi/cocoa/CoreTextSPI.h:
     11
    1122019-07-31  Youenn Fablet  <youenn@apple.com>
    213
  • trunk/Source/WebCore/PAL/pal/spi/cocoa/CoreTextSPI.h

    r248071 r248081  
    133133CTFontRef CTFontCreateForCSS(CFStringRef name, uint16_t weight, CTFontSymbolicTraits, CGFloat size);
    134134CTFontRef CTFontCreateForCharactersWithLanguage(CTFontRef currentFont, const UTF16Char *characters, CFIndex length, CFStringRef language, CFIndex *coveredLength);
     135#if HAVE(CTFONTCREATEFORCHARACTERSWITHLANGUAGEANDOPTION)
    135136CTFontRef CTFontCreateForCharactersWithLanguageAndOption(CTFontRef currentFont, const UTF16Char *characters, CFIndex length, CFStringRef language, CTFontFallbackOption option, CFIndex *coveredLength);
     137#endif
    136138CTFontRef CTFontCopyPhysicalFont(CTFontRef);
    137139
Note: See TracChangeset for help on using the changeset viewer.