| Summary: | [Cocoa] Unify implementation of custom font name aliases between all Cocoa platforms | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Myles C. Maxfield <mmaxfield> | ||||
| Component: | New Bugs | Assignee: | Myles C. Maxfield <mmaxfield> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | annulen, darin, ews-watchlist, gyuyoung.kim, ryuan.choi, sergio, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Myles C. Maxfield
2020-08-19 22:35:59 PDT
Created attachment 406918 [details]
Patch
Comment on attachment 406918 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=406918&action=review Nice improvement. > Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp:1311 > + RetainPtr<CFNumberRef> numberSpacingNumber = adoptCF(CFNumberCreate(kCFAllocatorDefault, kCFNumberIntType, &numberSpacingType)); auto > Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp:1312 > + RetainPtr<CFNumberRef> monospacedNumbersNumber = adoptCF(CFNumberCreate(kCFAllocatorDefault, kCFNumberIntType, &monospacedNumbersSelector)); auto > Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp:1313 > + RetainPtr<CTFontDescriptorRef> systemFontDescriptor = adoptCF(CTFontDescriptorCreateForUIType(kCTFontUIFontSystem, size, nullptr)); auto > Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp:1314 > + RetainPtr<CTFontDescriptorRef> monospaceFontDescriptor = adoptCF(CTFontDescriptorCreateCopyWithFeature(systemFontDescriptor.get(), numberSpacingNumber.get(), monospacedNumbersNumber.get())); auto Committed r266663: <https://trac.webkit.org/changeset/266663> |