[Bug 37984] WebKit freetype backend doesn't support "locl" tables
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jan 4 10:40:33 UTC 2011
https://bugs.webkit.org/show_bug.cgi?id=37984
--- Comment #13 from Koan-Sin Tan <koansin.tan at gmail.com> 2011-01-04 02:40:33 PST ---
(In reply to comment #12)
> (From update of attachment 77796 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=77796&action=review
>
> > WebCore/platform/graphics/freetype/GlyphPageTreeNodeFreeType.cpp:67
> > + PangoFontDescription* pangoDescription = pango_font_description_from_string(face->family_name);
> > + if (!pangoDescription)
> > + return false;
> > +
>
> I'm pretty sure this won't work with custom fonts, since IIUC Pango just does a Fontconfig lookup. It makes more sense to bail out for fonts with no FcPattern.
As we discussed on IRC, I tried [1] on Ubuntu. It worked like what on my Mac.
I read a little bit Pango source code. It seems to me that there is no way to create PangoFont or PangoFcFont from FT_Face without adding new API to Pango.
And the reason why my code works is that Pango can use FreeType without using FontConfig. The PangoFcFont is kinda misnomer, I think. PangoFcFont is can be Xft font, FreeType Font, or FontConfig+FreeType font
[1] http://freebsd.csie.nctu.edu.tw/~freedom/webkitgtk-test/serb.html
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the fonts-bugs
mailing list