[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master b98dd169a: * src/sfnt/ttmtx.c (tt_face_get_metrics):
From: |
Werner Lemberg |
Subject: |
[freetype2] master b98dd169a: * src/sfnt/ttmtx.c (tt_face_get_metrics): Apply variations unconditionally. |
Date: |
Wed, 25 May 2022 08:51:41 -0400 (EDT) |
branch: master
commit b98dd169a1823485e35b3007ce707a6712dcd525
Author: Behdad Esfahbod (بهداد اسفهبد) <behdad@behdad.org>
Commit: Werner Lemberg <wl@gnu.org>
* src/sfnt/ttmtx.c (tt_face_get_metrics): Apply variations unconditionally.
This causes a speed-up of approx. 20% for getting advance widths.
---
src/sfnt/ttmtx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master b98dd169a: * src/sfnt/ttmtx.c (tt_face_get_metrics): Apply variations unconditionally.,
Werner Lemberg <=