[Webkit-unassigned] [Bug 99614] [MathML] Render stretched operators on all platforms

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 14 08:15:56 PST 2014


https://bugs.webkit.org/show_bug.cgi?id=99614





--- Comment #14 from Frédéric Wang <fred.wang at free.fr>  2014-02-14 08:13:10 PST ---
On bug 122297, I've attached an experimental patch that shows how to read the OpenType MATH table to determine the default linethickness of fraction bars. It will be under an OPENTYPE_MATH flag to start with, since the libraries to read OpenType tables only seem available on the GTK/EFL ports at the moment. I'm now considering how to read the GlyphAssembly table for vertical stretching. 

Currently, I think everything is done in RenderMathMLOperator::paintCharacter where the UChar character is used to get metrics (via glyphDataForCharacter) and to paint it (via drawText). 

It seems that there is a glyphDataForIndex function in GlyphPage and that
most platforms have a Font::drawGlyphs function to draw glyphs. So perhaps we can switch from Unicode code point to glyph index. For GTK/EFL we would read the index directly from the MATH table and for the other ports we would have to use hardcoded tables of glyph indexes and constructions (e.g. for the STIX fonts).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list