shithub: freetype+ttf2subf

Download patch

ref: e3be90bf2846969b6a1fb858b5399f534b5cb5c2
parent: 481b25f00969549816b94e5d2d1f7d75d1cd930f
author: Werner Lemberg <[email protected]>
date: Mon Jul 2 10:58:58 EDT 2007

formatting

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,19 +1,19 @@
 2007-07-01  David Turner  <[email protected]>
 
-	* include/freetype/freetype.h, src/base/ftpatent.c: adding
-	FT_Face_SetUnpatentedHinting to dynamically change the setting
-	after a face is created.
+	* include/freetype/freetype.h, src/base/ftpatent.c
+	(FT_Face_SetUnpatentedHinting): New function to dynamically change
+	the setting after a face is created.
 
-	* src/truetype/ttgload.c: fix a small bug that created distortions
-	in the bytecode interpreter results
+	* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Fix a small bug
+	that created distortions in the bytecode interpreter results.
 
 2007-06-30  David Turner  <[email protected]>
 
-	* src/truetype/ttinterp.c: add missing variable initialization,
-	gets rid of Valgrind fixes.
+	* src/truetype/ttinterp.c (Ins_IUP): Add missing variable
+	initialization.
 
-	* src/autofit/aflatin.c: get rid of an infinite loop in the case
-	of degenerate fonts.
+	* src/autofit/aflatin.c (af_latin_metric_init_blues): Get rid of an
+	infinite loop in the case of degenerate fonts.
 
 2007-06-26  Rahul Bhalerao  <[email protected]>
 
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -3389,7 +3389,8 @@
   /*    1 if this is a TrueType font that uses one of the patented         */
   /*    opcodes, 0 otherwise.                                              */
   /*                                                                       */
-  /* <Since> 2.3.5                                                         */
+  /* <Since>                                                               */
+  /*    2.3.5                                                              */
   /*                                                                       */
   FT_EXPORT( FT_Bool )
   FT_Face_CheckTrueTypePatents( FT_Face  face );
@@ -3407,18 +3408,20 @@
   /*                                                                       */
   /* <Input>                                                               */
   /*    face  :: A face handle.                                            */
-  /*    value :: new boolean setting                                       */
   /*                                                                       */
+  /*    value :: New boolean setting.                                      */
+  /*                                                                       */
   /* <Return>                                                              */
-  /*    the old setting value. this will always be false if this is not    */
-  /*    a SFNT font, or if the unpatented hinter is not compiled in the    */
-  /*    this instance of the library.                                      */
+  /*    The old setting value.  This will always be false if this is not   */
+  /*    a SFNT font, or if the unpatented hinter is not compiled in this   */
+  /*    instance of the library.                                           */
   /*                                                                       */
-  /* <Since> 2.3.5                                                         */
+  /* <Since>                                                               */
+  /*    2.3.5                                                              */
   /*                                                                       */
   FT_EXPORT( FT_Bool )
-  FT_Face_SetUnpatentedHinting( FT_Face   face,
-                                FT_Bool   value );
+  FT_Face_SetUnpatentedHinting( FT_Face  face,
+                                FT_Bool  value );
 
   /* */
 
--- a/src/base/ftpatent.c
+++ b/src/base/ftpatent.c
@@ -254,25 +254,28 @@
   }
 
 
+  /* documentation is in freetype.h */
+
   FT_EXPORT_DEF( FT_Bool )
-  FT_Face_SetUnpatentedHinting( FT_Face   face,
-                                FT_Bool   value )
+  FT_Face_SetUnpatentedHinting( FT_Face  face,
+                                FT_Bool  value )
   {
     FT_Bool  result = 0;
 
-#if defined(TT_CONFIG_OPTION_UNPATENTED_HINTING) && \
-   !defined(TT_CONFIG_OPTION_BYTECODE_INTEPRETER)
-    if ( face && FT_IS_SFNT(face) )
+
+#if defined( TT_CONFIG_OPTION_UNPATENTED_HINTING ) && \
+    !defined( TT_CONFIG_OPTION_BYTECODE_INTEPRETER )
+    if ( face && FT_IS_SFNT( face ) )
     {
       result = !face->internal->ignore_unpatented_hinter;
       face->internal->ignore_unpatented_hinter = !value;
     }
 #else
-    FT_UNUSED(face);
-    FT_UNUSED(value);
+    FT_UNUSED( face );
+    FT_UNUSED( value );
 #endif
 
-    return  result;
+    return result;
   }
 
 /* END */