From d4aabda388e54454ebdcb4bb621605b8abf0ea7f Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Sat, 18 Oct 2014 10:10:04 -0400 Subject: [PATCH] [truetype] Unwrap engine compensation settings. * src/truetype/ttobjs.c (tt_size_init_bytecode): Updated. --- ChangeLog | 6 ++++++ src/truetype/ttobjs.c | 9 +++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index e1636c32c..4d9037cbc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2014-10-18 Alexei Podtelezhnikov + + [truetype] Unwrap engine compensation settings. + + * src/truetype/ttobjs.c (tt_size_init_bytecode): Updated. + 2014-10-18 Werner Lemberg [autofit] Add blue-zone support for Telugu. diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c index 05a121c17..46f133271 100644 --- a/src/truetype/ttobjs.c +++ b/src/truetype/ttobjs.c @@ -968,7 +968,6 @@ TT_Size size = (TT_Size)ftsize; TT_Face face = (TT_Face)ftsize->face; FT_Memory memory = face->root.memory; - FT_Int i; FT_UShort n_twilight; TT_MaxProfile* maxp = &face->max_profile; @@ -997,9 +996,11 @@ metrics->rotated = FALSE; metrics->stretched = FALSE; - /* set default compensation (all 0) */ - for ( i = 0; i < 4; i++ ) - metrics->compensations[i] = 0; + /* set default engine compensation */ + metrics->compensations[0] = 0; /* gray */ + metrics->compensations[1] = 0; /* black */ + metrics->compensations[2] = 0; /* white */ + metrics->compensations[3] = 0; /* reserved */ } /* allocate function defs, instruction defs, cvt, and storage area */