Closed Bug 410331 Opened 18 years ago Closed 18 years ago

Stretched glyphs from STIX fonts display with gaps under windows (bad glyph extents for postscript OpenType fonts)

Categories

(Core :: Graphics, defect, P2)

x86
Windows XP
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: wgianopoulos, Assigned: karlt)

References

()

Details

Attachments

(5 files)

When using STIX fonts for MathML under Windows, stretched braces display with gaps in them.
Silly me was so fixated on the missing segments in the braces, I did not even notice that the Integral signs and the Sigma's don't display at all.
Blocks: 96041
Flags: blocking1.9?
Priority: -- → P2
Summary: Stretched glyphs from STIX fonts display with gaps under windows → Stretched glyphs from STIX fonts display with gaps under windows (bad glyph extents for postscript OpenType fonts)
(In reply to comment #1) > Silly me was so fixated on the missing segments in the braces, I did not even > notice that the Integral signs and the Sigma's don't display at all. HYPHEN-MINUS and LESS-THAN OR EQUAL TO are not displaying either. I wonder whether GetCharWidth32 may be failing. "GetCharWidth32 cannot be used on TrueType fonts." http://msdn2.microsoft.com/en-us/library/ms534017(VS.85).aspx I wonder whether that statement applies to OpenType fonts too.
Attached file first-letter testcase —
Our first-letter frames use the glyph ascent and descent when > 0 for the content-box size, so ascent and descent extents can be tested with this test case.
STIXGeneral.otf, STIXSiz1Sym.otf, and cambria.ttc are needed for the first-letter testcase. On MS Windows, only the Cambria Math (TrueType) glyph ascent and descent are correct.
An ugly workaround for now might be to use a TrueType conversion of the fonts: http://olegueret.googlepages.com/stixfonts-ttf
(In reply to comment #6) > An ugly workaround for now might be to use a TrueType conversion of the fonts: > > http://olegueret.googlepages.com/stixfonts-ttf > OK. That does work as a workaround for me.
Karl, are you going to take this? This seems pretty serious in general...
Assignee: nobody → mozbugz
Status: NEW → ASSIGNED
Attachment #295202 - Flags: review?(vladimir)
(In reply to comment #9) > Created an attachment (id=295202) [details] > use GetGlyphOutline for glyph metrics of OpenType CFF fonts > This has been fixed in the cairo git repository. It was a regression. Cairo has always used GetGlyphOutline for OpenType/CFF however a recent fix for bitmap fonts had the side effect of breaking OpenType/CFF fonts.
Attachment #295202 - Flags: review?(vladimir)
Test builds that include this patch are available at: http://www.wg9s.com/mozilla/firefox/
I believe this has been fixed by the updated cairo from bug 411224; please reopen if that's not the case.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Flags: in-testsuite?
Status: RESOLVED → VERIFIED
Flags: blocking1.9?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: