commit | b98dd169a1823485e35b3007ce707a6712dcd525 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod (بهداد اسفهبد) <behdad@behdad.org> | Wed May 25 14:49:37 2022 +0200 |
committer | Werner Lemberg <wl@gnu.org> | Wed May 25 14:49:37 2022 +0200 |
tree | 7080d2c911686cb59ca7e36b7dd6380a7e4f32fd | |
parent | 7838c78f53f206ac5b8e9cefde548aa81cb00cf4 [diff] |
* src/sfnt/ttmtx.c (tt_face_get_metrics): Apply variations unconditionally. This causes a speed-up of approx. 20% for getting advance widths.
diff --git a/src/sfnt/ttmtx.c b/src/sfnt/ttmtx.c index 8837732..c895eec 100644 --- a/src/sfnt/ttmtx.c +++ b/src/sfnt/ttmtx.c
@@ -306,7 +306,7 @@ } #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT - if ( var ) + if ( var && face->blend ) { FT_Face f = FT_FACE( face ); FT_Int a = (FT_Int)*aadvance;