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)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jtd, Assigned: jtd)

References

()

Details

Attachments

(3 files)

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.
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.
Blocks: 517642
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)
(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?
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.

Attachment

General

Created:
Updated:
Size: