Closed Bug 1232880 Opened 9 years ago Closed 8 years ago

lookup local fonts with CTFont API

Categories

(Core :: Graphics: Text, defect)

Unspecified
macOS
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox46 --- affected

People

(Reporter: jtd, Assigned: jtd)

Details

Attachments

(1 file)

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).
Attachment #8698766 - Flags: review?(m_kato) → review+
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
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: