shithub: freetype+ttf2subf

Download patch

ref: a3690cdadd5bb8fb0ddfa194124d9808a85d1b7e
parent: a10a9f91f7a488d0b12910fdcfb1aa0ab387127e
author: Wu, Chia-I (吳佳一) <olvaffe@gmail.com>
date: Tue Dec 6 03:24:01 EST 2005

* src/truetype/ttobjs.c (tt_size_init): size->ttmetrics.valid is
initialized twice.
size->strike_index is not initialized.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-12-06  Chia-I Wu  <b90201047@ntu.edu.tw>
+
+	* src/truetype/ttobjs.c (tt_size_init): size->ttmetrics.valid is
+	initialized twice.
+	size->strike_index is not initialized.
+
 2005-12-02  Taek Kwan(TK) Lee  <taeklee@gmail.com>
 
 	* src/type42/t42objs.x (T42_Face_Init): Replace call to
--- a/src/truetype/ttobjs.c
+++ b/src/truetype/ttobjs.c
@@ -507,8 +507,6 @@
     TT_MaxProfile*  maxp = &face->max_profile;
 
 
-    size->ttmetrics.valid = FALSE;
-
     size->max_function_defs    = maxp->maxFunctionDefs;
     size->max_instruction_defs = maxp->maxInstructionDefs;
 
@@ -587,6 +585,7 @@
 #endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
 
     size->ttmetrics.valid = FALSE;
+    size->strike_index    = 0xFFFFU;
 
     return error;
   }