shithub: freetype+ttf2subf

Download patch

ref: d4aabda388e54454ebdcb4bb621605b8abf0ea7f
parent: c9c33f202ece24390e696a8d91d44f1f6a61a8ed
author: Alexei Podtelezhnikov <[email protected]>
date: Sat Oct 18 06:10:04 EDT 2014

[truetype] Unwrap engine compensation settings.

* src/truetype/ttobjs.c (tt_size_init_bytecode): Updated.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-10-18  Alexei Podtelezhnikov  <[email protected]>
+
+	[truetype] Unwrap engine compensation settings.
+
+	* src/truetype/ttobjs.c (tt_size_init_bytecode): Updated.
+
 2014-10-18  Werner Lemberg  <[email protected]>
 
 	[autofit] Add blue-zone support for Telugu.
--- 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 */