[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freetype-devel
Subject:    [ft-devel] Adobe CFF engine way too slow
From:       Behdad Esfahbod <behdad () behdad ! org>
Date:       2014-07-26 21:06:03
Message-ID: 53D4183B.8050008 () behdad ! org
[Download RAW message or body]

Hi,

I noticed that fontconfig caching (eg, running fc-query on font files) is five
times slower with Adobe CFF engine that it is with old engine.  Fontconfig
loads all glyphs with FT_Load_Glyph().

With old engine:

behdad:source-han-sans 0$ time fc-query *.otf --format
'%{+style,weight{%{=unparse}}}\n'
:style=Bold:weight=200
:style=ExtraLight,Regular:weight=0
:style=Heavy,Bold:weight=210
:style=Light,Regular:weight=50
:style=Medium,Regular:weight=100
:style=Normal,Regular:weight=55
:style=Regular:weight=80

real	0m0.952s
user	0m0.927s
sys	0m0.024s


With Adobe engine:

behdad:source-han-sans 0$ time fc-query *.otf --format
'%{+style,weight{%{=unparse}}}\n'
:style=Bold:weight=200
:style=ExtraLight,Regular:weight=0
:style=Heavy,Bold:weight=210
:style=Light,Regular:weight=50
:style=Medium,Regular:weight=100
:style=Normal,Regular:weight=55
:style=Regular:weight=80

real	0m4.832s
user	0m4.782s
sys	0m0.045s


Any chance someone familiar with the code can look into it?  I suppose this is
something that can easily be fixed.  Maybe the new code doesn't respect
FT_LOAD_NO_HINTING?

Cheers,
-- 
behdad
http://behdad.org/

_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic