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.
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.
firefox is calling FcFreeTypeQueryFace for webfonts like this:
pattern =
(* sQueryFacePtr) (mFace, gfxFontconfigUt ils::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.
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.