[Cocoa] Migrate to CTFontHasTable() from CTFontCopyAvailableTables()
Created attachment 438112 [details] Patch
Comment on attachment 438112 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=438112&action=review > Source/WTF/wtf/PlatformUse.h:322 > +#define USE_CTFONTHASTABLE 1 I'd write this out as USE_CT_FONT_HAS_TABLE - but maybe that's just me!
Comment on attachment 438112 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=438112&action=review >> Source/WTF/wtf/PlatformUse.h:322 >> +#define USE_CTFONTHASTABLE 1 > > I'd write this out as USE_CT_FONT_HAS_TABLE - but maybe that's just me! Yeah I originally did this the first time this kind of thing came up, but someone (I forget who) told me not to. Since then, we have USE_CTFONTSHAPEGLYPHS and USE_CTFONTSHAPEGLYPHS_WORKAROUND, so it seems maybe better to follow the established pattern.
Comment on attachment 438112 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=438112&action=review >>> Source/WTF/wtf/PlatformUse.h:322 >>> +#define USE_CTFONTHASTABLE 1 >> >> I'd write this out as USE_CT_FONT_HAS_TABLE - but maybe that's just me! > > Yeah I originally did this the first time this kind of thing came up, but someone (I forget who) told me not to. Since then, we have USE_CTFONTSHAPEGLYPHS and USE_CTFONTSHAPEGLYPHS_WORKAROUND, so it seems maybe better to follow the established pattern. HAVE_CTFONTCREATEFORCHARACTERSWITHLANGUAGEANDOPTION, HAVE_CTFONTISSYSTEMUIFONT, HAVE_CTFONTGETPHYSICALSYMBOLICTRAITS, and USE_CTFONTGETADVANCES_WORKAROUND too.
Committed r282398 (241659@main): <https://commits.webkit.org/241659@main>
<rdar://problem/83110084>