Closed
Bug 510440
Opened 15 years ago
Closed 14 years ago
[@font-face] implement better support for CFF fonts under Windows 7
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jtd, Assigned: jtd)
References
()
Details
Attachments
(3 files)
2.18 KB,
patch
|
Details | Diff | Splinter Review | |
51.25 KB,
image/png
|
Details | |
72.10 KB,
image/png
|
Details |
Dynamically loaded Postscript-style OpenType (CFF) fonts on Windows XP and Vista cannot be shaped with Uniscribe due to a bug in Uniscribe (so no ligatures or kerning). Also, before Windows 7, the t2embed library only allows TTF fonts to be loaded. Steps: Under Windows 7, load the URL. The example using Calluna shows neither kerning or ligatures. Expected result: as on Mac/Linux, kerning and ligatures display. Windows 7 fixes both these bugs so we should add code to sniff for Windows 7 and load CFF fonts via the t2embed library when possible.
Assignee | ||
Comment 1•15 years ago
|
||
Assignee | ||
Comment 2•15 years ago
|
||
Assignee | ||
Comment 3•15 years ago
|
||
Windows 7 has corrected the Uniscribe problem with loading CFF fonts via AddFontMemResourceEx (and also loading via t2embed), so kerning/ligatures show correctly for both TTF and OTF fonts. WinXP only shows TTF fonts correctly.
Assignee | ||
Comment 4•15 years ago
|
||
Testcase for both screenshots: http://people.mozilla.org/~jdaggett/tests/otfttfkerning.html
Would Part 3 of bug 502906 allow this to be fixed in a "nicer" way? (Instead of relying on an OS version check, it'd just try Uniscribe and fallback to GDI if it fails)
Comment 6•14 years ago
|
||
(In reply to comment #0) > Windows 7 fixes both these bugs so we should add code to sniff for Windows 7 If you wanted to do OS sniffing, wouldn't using the SDK define for Windows 7+ work?
Assignee | ||
Comment 7•14 years ago
|
||
Fixed by the patch for bug 578022.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•