diff options
author | Behdad Esfahbod (بهداد اسفهبد) <behdad@behdad.org> | 2022-05-25 14:49:37 +0200 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2022-05-25 14:49:37 +0200 |
commit | b98dd169a1823485e35b3007ce707a6712dcd525 (patch) | |
tree | 7080d2c911686cb59ca7e36b7dd6380a7e4f32fd | |
parent | 7838c78f53f206ac5b8e9cefde548aa81cb00cf4 (diff) | |
download | freetype2-b98dd169a1823485e35b3007ce707a6712dcd525.tar.gz |
* src/sfnt/ttmtx.c (tt_face_get_metrics): Apply variations unconditionally.
This causes a speed-up of approx. 20% for getting advance widths.
-rw-r--r-- | src/sfnt/ttmtx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sfnt/ttmtx.c b/src/sfnt/ttmtx.c index 88377327c..c895eec86 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; |