shithub: freetype+ttf2subf

Download patch

ref: a113e5df0cc31425e7bb4135cd297305db33d0ed
parent: bc3b5281ed08d1cae3a2d881d2c72d0e98e57c05
author: Werner Lemberg <[email protected]>
date: Thu May 9 07:37:58 EDT 2019

* src/truetype/ttgload.c (TT_Process_Simple_Glyph): Minor.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2019-05-09  Werner Lemberg  <[email protected]>
+
+	* src/truetype/ttgload.c (TT_Process_Simple_Glyph): Minor.
+
 2019-05-08  Alexei Podtelezhnikov  <[email protected]>
 
 	[smooth] Faster fractions.
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -971,15 +971,7 @@
 
 #endif /* TT_CONFIG_OPTION_GX_VAR_SUPPORT */
 
-    if ( IS_HINTED( loader->load_flags ) )
     {
-      tt_prepare_zone( &loader->zone, &gloader->current, 0, 0 );
-
-      FT_ARRAY_COPY( loader->zone.orus, loader->zone.cur,
-                     loader->zone.n_points + 4 );
-    }
-
-    {
 #ifdef TT_SUPPORT_SUBPIXEL_HINTING_INFINALITY
       TT_Face    face   = loader->face;
       TT_Driver  driver = (TT_Driver)FT_FACE_DRIVER( face );
@@ -1075,6 +1067,11 @@
 
     if ( IS_HINTED( loader->load_flags ) )
     {
+      tt_prepare_zone( &loader->zone, &gloader->current, 0, 0 );
+
+      FT_ARRAY_COPY( loader->zone.orus, loader->zone.cur,
+                     loader->zone.n_points + 4 );
+
       loader->zone.n_points += 4;
 
       error = TT_Hint_Glyph( loader, 0 );