https://bugs.webkit.org/show_bug.cgi?id=90235
Reviewed by Kent Tamura.
Use CGFontCopyTableForTag instead.
No new tests. css3/font-feature-settings-rendering.html should pass. I'll rebase expectations once bots get the result.
* platform/graphics/harfbuzz/ng/HarfBuzzFaceCoreText.cpp:
(WebCore::harfbuzzCoreTextGetTable):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121510
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-06-28 Kenichi Ishibashi <bashi@chromium.org>
+
+ [Chromium] CTFontCopyTable of MacOSX10.5 SDK doesn't work for layout tables
+ https://bugs.webkit.org/show_bug.cgi?id=90235
+
+ Reviewed by Kent Tamura.
+
+ Use CGFontCopyTableForTag instead.
+
+ No new tests. css3/font-feature-settings-rendering.html should pass. I'll rebase expectations once bots get the result.
+
+ * platform/graphics/harfbuzz/ng/HarfBuzzFaceCoreText.cpp:
+ (WebCore::harfbuzzCoreTextGetTable):
+
2012-06-28 Philip Rogers <pdr@google.com>
Add preventative assert in SVGTRefElement
static hb_blob_t* harfbuzzCoreTextGetTable(hb_face_t* face, hb_tag_t tag, void* userData)
{
FontPlatformData* platformData = reinterpret_cast<FontPlatformData*>(userData);
- CTFontRef ctFont = platformData->ctFont();
- CFDataRef cfData = CTFontCopyTable(ctFont, tag, kCTFontTableOptionNoOptions);
+ // It seems that CTFontCopyTable of MacOSX10.5 sdk doesn't work for
+ // OpenType layout tables(GDEF, GSUB, GPOS). Use CGFontCopyTableForTag instead.
+ CGFontRef cgFont = platformData->cgFont();
+ CFDataRef cfData = CGFontCopyTableForTag(cgFont, tag);
if (!cfData)
return 0;