[Fontconfig-bugs] [Bug 64766] Make fontconfig scanning faster

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri May 9 09:12:13 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=64766

--- Comment #21 from Behdad Esfahbod <freedesktop at behdad.org> ---
(In reply to comment #20)
> (In reply to comment #19)
> > I suggest we remove the "load every glyph to check the outline is not empty"
> > part of fontconfig.
> > 
> > There are very legitimate uses of such empty glyphs in fonts that have GSUB.
> > 
> > Akira, do you agree?  This should give us a huge speedup.  I can work on
> > that.
> 
> If that can be done, that really sounds nice though, how does fontconfig
> estimate the charset coverage then?

Just accept whatever character is mapped in cmap.  The current code does that
but then *also* checks the glyph outline of those mapped glyphs, and rejects
any that has an empty outline, unless it's listed in the <blanks> tag.

I'll ask Keith to comment here, but I'm guessing that 15 years ago bogus fonts
were more common...

Or, we can easily change the code and test lots of fonts to see what kind of
difference this makes at all.

-- 
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/20140509/210f4069/attachment.html>


More information about the Fontconfig-bugs mailing list