[Webkit-unassigned] [Bug 133569] The OpenType MATH table is not read on Mac

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 20 01:34:51 PDT 2014


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





--- Comment #7 from Frédéric Wang (:fredw) <fred.wang at free.fr>  2014-06-20 01:35:10 PST ---
(In reply to comment #6)
> (In reply to comment #5)
> > Created an attachment (id=232662)
 --> (https://bugs.webkit.org/attachment.cgi?id=232662&action=review) [details] [details]
> > Patch to do some logging
> > 
> > Here is a patch to do some logging. I'd appreciate if someone could load the testcase on Mac and tell the output.
> 
> I've emailed you the output.

Thank you very much, Tim. So apparently, the MATH table is not loaded at all.

Reading the Mac code, I see that Source/WebCore/platform/graphics/mac/SimpleFontDataMac.mm has a static function

static CFDataRef copyFontTableForTag(FontPlatformData& platformData, FourCharCode tableName)
{
    return CGFontCopyTableForTag(platformData.cgFont(), tableName);
}

that is used to read tables that way:

RetainPtr<CFDataRef> os2Table = adoptCF(copyFontTableForTag(m_platformData, 'OS/2'));

Are you able to copy copyFontTableForTag into Source/WebCore/platform/graphics/FontPlatformData.cpp and then use it in FontPlatformData::openTypeTable with a hardcoded 'MATH' string:

if (RetainPtr<CFDataRef> data = adoptCF(copyFontTableForTag(cgFont(), 'MATH'))
  return ...;

...just to see if the MATH table is loaded?

-- 
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