[ft] Cache advances
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 11 Sep 2018 12:35:26 +0000 (14:35 +0200)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 11 Sep 2018 12:36:14 +0000 (14:36 +0200)
commit54998befc43ef38e47b74b3153380adbcf6279d4
tree53cbc2701244eff7214d3d5fd887fcb2bc7f20b8
parentf90bab8560816b60b4b3f2379b36c08756b21e6c
[ft] Cache advances

I decided to always use the cache, instead of my previous sketch direction
that was to only allocate and use cache if fast advances are not available.
The cache is a mere 1kb, so just use it...

TODO: Invalidate cache on font size change.

Fixes https://github.com/harfbuzz/harfbuzz/issues/651
Fixes https://github.com/harfbuzz/harfbuzz/pull/1082
src/hb-cache.hh
src/hb-ft.cc