shithub: freetype+ttf2subf

Download patch

ref: 634867898b7f741f1f6f5610310f831e0996d084
parent: 2536862d41cd1fd279e4fd2314112b44d8fd4e29
author: Werner Lemberg <[email protected]>
date: Fri Feb 17 09:55:27 EST 2012

[autofit] Fix outline flags.

* src/autofit/afloader.c (af_loader_load_g): Don't reassign
`outline.flags' so that this information is preserved.  See
discussion starting at

  http://lists.gnu.org/archive/html/freetype-devel/2012-02/msg00046.html

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2012-02-17  Alexei Podtelezhnikov  <[email protected]>
+
+	[autofit] Fix outline flags.
+
+	* src/autofit/afloader.c (af_loader_load_g): Don't reassign
+	`outline.flags' so that this information is preserved.  See
+	discussion starting at
+
+	  http://lists.gnu.org/archive/html/freetype-devel/2012-02/msg00046.html
+
 2012-02-11  Werner Lemberg  <[email protected]>
 
 	[truetype] Fix Savannah bug #35466.
--- a/src/autofit/afloader.c
+++ b/src/autofit/afloader.c
@@ -465,7 +465,13 @@
       if ( error )
         goto Exit;
 
-      slot->outline = internal->loader->base.outline;
+      /* reassign all outline fields except flags to protect them */
+      slot->outline.n_contours = internal->loader->base.outline.n_contours;
+      slot->outline.n_points   = internal->loader->base.outline.n_points;
+      slot->outline.points     = internal->loader->base.outline.points;
+      slot->outline.tags       = internal->loader->base.outline.tags;
+      slot->outline.contours   = internal->loader->base.outline.contours;
+
       slot->format  = FT_GLYPH_FORMAT_OUTLINE;
     }