]> granicus.if.org Git - libass/commit
harfbuzz: cache glyph metrics
authorGrigori Goronzy <greg@blackbox>
Fri, 29 Jul 2011 02:21:48 +0000 (04:21 +0200)
committerGrigori Goronzy <greg@blackbox>
Fri, 29 Jul 2011 02:44:56 +0000 (04:44 +0200)
commitd7544850775344879dd3049046c5b7ce2d52d3b3
treec90a7181ea8ff7be5382e33a1ccdec40f568ae2a
parent2aff07ec62f1f2ef8462bb2954907ecca71288fa
harfbuzz: cache glyph metrics

HarfBuzz' FreeType font functions do not cache anything and call
FT_Load_Glyph all the time, which can be slow. Add a cache for metrics
and use it with custom font functions.
libass/ass_cache.c
libass/ass_cache.h
libass/ass_cache_template.h
libass/ass_shaper.c