[webkit-dev] Reading Open Type tables in WebKit?
cfleizach at apple.com
Thu Mar 20 09:50:54 PDT 2014
In regards to the Mac platform we can use with CTFontCopyTable() with the MATH identifier.
Can you email me a copy of the Microsoft document so we can look into it more.
On Mar 19, 2014, at 11:43 PM, Frédéric WANG <fred.wang at free.fr> wrote:
> Hi all,
> I'm trying to implement the OpenType MATH table  in WebKit in order to improve the MathML support. I've already made some progress and split the work into several steps . For people who are interested, here are some screenshots showing some rendering improvements:
> There was already some code in Source/WebCore/platform/graphics/opentype/ to read OpenType tables so I've been able to reuse it for the MATH table. However, this code is not compiled on all platforms. At the moment I'm only able to compile the support for OpenType MATH table with the following condition:
> USE(FREETYPE) || (PLATFORM(WIN) && (USE(CG) || USE(CAIRO)))
> which I think means it will work on Linux (I tested the EFL and GTK ports) and most Windows platforms (not tested yet). This means that for the Mac port, I can not do better than using big hardcoded tables... That can be a temporary solution, but it would be better to read the font tables directly in order to get support for arbitrary MATH fonts and to make maintenance easier.
> So I'd like to know if the current font API on the Mac port has some features to load OpenType tables? As a comparison on Gecko, I've used Harfbuzz to read the MATH table and this library is also available on Mac. I heard that Blink was moving to Harfbuzz on all platforms, so I'm also wondering if there are plans to do the same for WebKit? This would allow to support OpenType tables on all platforms...
> Thank you,
>  MATH table references:
> "The MATH table and OpenType Features for Math Processing" (Microsoft's document, not public yet ; send me a private mail if you want to get a copy)
>  Bugzilla references:
> Frédéric Wang
> MathML Crowdfunding: ulule.com/mathematics-ebooks
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
More information about the webkit-dev