Bug 234769

Summary: [Cocoa] Make it easier to convert from WebCore::Font to NSFont/UIFont
Product: WebKit Reporter: Wenson Hsieh <wenson_hsieh>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Wenson Hsieh 2021-12-31 11:48:17 PST
A couple of ideas to follow up on, from https://bugs.webkit.org/show_bug.cgi?id=234757:

• Add a `Font::cocoaFont()` method that returns a `WebCore::CocoaFont *` (i.e., either an NSFont or a UIFont).
• Rename `Font::getCTFont()` to just `ctFont()`, for consistency with style guidelines where the "get"- prefix should be omitted.
Comment 1 Radar WebKit Bug Importer 2022-01-07 11:49:21 PST
<rdar://problem/87264788>