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)
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.
| Reporter | ||
Comment 1•18 years ago
|
||
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.
| Assignee | ||
Comment 2•18 years ago
|
||
I wonder whether GetGlyphOutlineW would work for OpenType CFF fonts
(bug 96041 comment 44):
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/gfx/cairo/cairo/src/cairo-win32-font.c&rev=1.40&mark=745-749,770-771#745
http://msdn2.microsoft.com/en-us/library/ms534013(VS.85).aspx
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)
| Assignee | ||
Comment 3•18 years ago
|
||
(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.
| Assignee | ||
Comment 4•18 years ago
|
||
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.
| Assignee | ||
Comment 5•18 years ago
|
||
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.
| Assignee | ||
Comment 6•18 years ago
|
||
An ugly workaround for now might be to use a TrueType conversion of the fonts:
http://olegueret.googlepages.com/stixfonts-ttf
| Reporter | ||
Comment 7•18 years ago
|
||
(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 | ||
Comment 9•18 years ago
|
||
| Assignee | ||
Comment 10•18 years ago
|
||
from the build with the above patch applied at
https://build.mozilla.org/tryserver-builds/2008-01-02_21:13-ktomlinson@mozilla.com-1199337145/ktomlinson@mozilla.com-1199337145-firefox-try-win32.installer.exe
(The line height and text frame height is wrong for Cambria Math but that is bug 381815 and 402473.)
Blocks: 408312
Comment 11•18 years ago
|
||
(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.
| Assignee | ||
Updated•18 years ago
|
Attachment #295202 -
Flags: review?(vladimir)
| Assignee | ||
Comment 12•18 years ago
|
||
Thanks for this, Adrian.
http://gitweb.freedesktop.org/?p=cairo;a=commitdiff;h=47bebc8f1d0b6524f8d1eff1fa3f981f1e4c4c33
Depends on: 411224
| Reporter | ||
Comment 13•18 years ago
|
||
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
Updated•18 years ago
|
Flags: in-testsuite?
| Reporter | ||
Updated•18 years ago
|
Status: RESOLVED → VERIFIED
| Assignee | ||
Updated•16 years ago
|
Flags: blocking1.9?
You need to log in
before you can comment on or make changes to this bug.
Description
•