WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
130327
Support arbitrary number of parts for GlyphAssembly
https://bugs.webkit.org/show_bug.cgi?id=130327
Summary
Support arbitrary number of parts for GlyphAssembly
Frédéric Wang (:fredw)
Reported
2014-03-17 03:15:40 PDT
Bug 130322
allows to use the data from the GlyphAssembly table. A RenderMathMLOperator::getGlyphAssemblyFallFack function provides a fallback to the format currently supported by RenderMathMLOperator (top/extension/bottom and middle pieces). However, the GlyphAssembly is more general. In particular it can contain arbitrary number of pieces. Although, I don't think there are MATH fonts that need more that what is currently supported by RenderMathMLOperator, it would be nice to allow the general format.
Attachments
Add attachment
proposed patch, testcase, etc.
Frédéric Wang (:fredw)
Comment 1
2016-06-28 11:17:53 PDT
The number of repetition *for each* extender part was limited to 128 in
bug 155434
. If we support an arbitrary number of parts (thus extender parts) then the limit should instead be set on the number of glyphs *for the whole assembly*. This blog post explains how to implement generic support for the GlyphAssembly sub-table and in particular to calculate (before painting) the number N of glyphs necessary (and so to set a limit N_max):
http://frederic-wang.fr/opentype-math-in-harfbuzz.html
When the limit is exceeded, we currently just leave a big gap. In
bug 155434 comment 6
it was suggested to evenly distribute the gaps. I would instead suggest to just limit the number N of glyphs (and as a consequence to limit the stretch size) before painting them. The blog post gives a reference to an implementation in progress for HarfBuzz. I think it makes sense to use the text drawing (MathOperator class) as well as MATH table parsing (OpenTypeMathData class) from such library. In particular for WebKit ports using HarfBuzz (such as GTK) we should probably consider reusing HarfBuzz's MATH support when ready.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug