freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] Adobe CFF engine way too slow


From: Behdad Esfahbod
Subject: [ft-devel] Adobe CFF engine way too slow
Date: Sat, 26 Jul 2014 17:06:03 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]