summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod (بهداد اسفهبد) <behdad@behdad.org>2022-05-25 14:49:37 +0200
committerWerner Lemberg <wl@gnu.org>2022-05-25 14:49:37 +0200
commitb98dd169a1823485e35b3007ce707a6712dcd525 (patch)
tree7080d2c911686cb59ca7e36b7dd6380a7e4f32fd
parent7838c78f53f206ac5b8e9cefde548aa81cb00cf4 (diff)
downloadfreetype2-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.c2
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;