[Fontconfig-bugs] [Bug 63096] webfonts support?
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Apr 4 09:09:55 PDT 2013
https://bugs.freedesktop.org/show_bug.cgi?id=63096
Behdad Esfahbod <freedesktop at behdad.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |freedesktop at behdad.org
--- Comment #1 from Behdad Esfahbod <freedesktop at behdad.org> ---
(In reply to comment #0)
> firefox is calling FcFreeTypeQueryFace for webfonts like this:
>
> pattern =
> (*sQueryFacePtr)(mFace, gfxFontconfigUtils::ToFcChar8(""), 0,
> NULL);
>
> This fails now because we require the valid filename to generate hash value
> and if not, simply fails because the matcher behaves wrong if some objects
> are available or unavailable in the cache.
In FcFreeTypeQueryFace (as opposed to FcFreeTypeQuery) we should use
FT_Load_Sfnt_Table() to get the font data and hash that.
> One idea to support this case is to define constant value and add an invalid
> hash to the cache?
>
> FWIW FcPatternDel should warn if one is going to delete objects which is in
> the matcher perhaps.
Humm. Not sure about that.
The matcher should not fail if something is missing. It should simply not
match.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20130404/66855374/attachment.html>
More information about the Fontconfig-bugs
mailing list