lookup local fonts with CTFont API

RESOLVED WONTFIX

Status

()

RESOLVED WONTFIX
3 years ago
3 years ago

People

(Reporter: jtd, Assigned: jtd)

Tracking

Trunk
Unspecified
Mac OS X
Points:
---

Firefox Tracking Flags

(firefox46 affected)

Details

Attachments

(1 attachment)

(Assignee)

Description

3 years ago
The src: local() lookups, we currently use CGFontCreateWithFontName within gfxMacPlatformFontList::LookupLocalFont. While experimenting with the OSX system font cascade I discovered that this routine doesn't recognize certain "meta" names that the CTFontCreateWithName. It would be better to use the CTFont API and pull the CGFont from the CTFont object (the lookups here aren't time sensitive, they occur once per @font-face load).
(Assignee)

Comment 1

3 years ago
Created attachment 8698766 [details] [diff] [review]
patch, use CTFontCreateWithName to look up local names
Attachment #8698766 - Flags: review?(m_kato)

Updated

3 years ago
Attachment #8698766 - Flags: review?(m_kato) → review+
(Assignee)

Comment 2

3 years ago
I was hoping to be able to access hidden system fonts via the use of src local with @font-face rules. But the CTFont API for this causes reftests failures on 10.6. So I think it would be better not to land this.
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.