Bug 234769 - [Cocoa] Make it easier to convert from WebCore::Font to NSFont/UIFont
Summary: [Cocoa] Make it easier to convert from WebCore::Font to NSFont/UIFont
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-12-31 11:48 PST by Wenson Hsieh
Modified: 2022-01-07 11:49 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>