Closed
Bug 1296105
Opened 9 years ago
Closed 9 years ago
Firefox uses OSX CoreGraphics API, should use CoreText API
Categories
(Firefox :: Shell Integration, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1279962
People
(Reporter: lmandel, Unassigned)
Details
Issue reported by Apple.
Please communicate with Firefox developers about the following problem regarding UI font usage in their app (Firefox 47 as of now):
The code uses CoreGraphics API to retrieve a font references, but sometimes the system can return a font name that is only understood by CoreText level API:
https://github.com/mozilla/gecko-dev/blob/master/gfx/thebes/gfxMacPlatformFontList.mm#L297
It needs to switch to CoreText API to properly interpret it.
Reporter | ||
Comment 1•9 years ago
|
||
Markus, can you look at this issue reported by Apple?
Flags: needinfo?(mstange)
Reporter | ||
Updated•9 years ago
|
Version: unspecified → 47 Branch
Comment 2•9 years ago
|
||
We mostly fixed this in bug 1279962.
The new code does:
> NSFont* font = [NSFont fontWithName:psname size:mSizeHint];
> if (font) {
> mFontRef = CTFontCopyGraphicsFont((CTFontRef)font, nullptr);
> }
NSFont* is CTFontRef, which is CoreText, so I think this addresses Apple's suggestion.
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: needinfo?(mstange)
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•