haikuwebkit/Source/WTF/wtf/spi
Myles C. Maxfield e1537965a7 [Cocoa] Stop honoring any dot-prefixed font names
https://bugs.webkit.org/show_bug.cgi?id=228177

Reviewed by Sam Weinig.

Source/WebCore:

Dot-prefixed fonts are intentionally unsupported. We should stop supporting them.
If authors want to access the various system fonts, they can use system-ui,
ui-serif, ui-monospace, or ui-rounded.

Test: fast/text/font-lookup-dot-prefix-case-sensitive.html

* platform/cocoa/VersionChecks.h:
* platform/graphics/cocoa/FontCacheCoreText.cpp:
(WebCore::isDotPrefixedForbiddenFont):
(WebCore::platformFontLookupWithFamily):

LayoutTests:

* fast/text/font-lookup-dot-prefix-case-sensitive-expected.html: Renamed from LayoutTests/fast/text/font-lookup-dot-prefix-case-sensitive-expected-mismatch.html.
* platform/ios/TestExpectations:
* platform/mac/TestExpectations:

Canonical link: https://commits.webkit.org/240717@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@281293 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-08-20 04:07:08 +00:00
..
cf Stop using objc_autoreleasePool{Push, Pop} in RunLoop observers 2020-11-10 23:53:11 +00:00
cocoa REGRESSION (r278877) [Cocoa] WebAuthn stopped working for non-Safari browsers 2021-07-29 22:12:16 +00:00
darwin [Cocoa] Stop honoring any dot-prefixed font names 2021-08-20 04:07:08 +00:00
mac