shithub: freetype+ttf2subf

Download patch

ref: d39fda2b5598fcedf4edab8343b32a30c13b9efa
parent: 4c507ffa80cc3f15cd6288a914dde4bd9438b5b5
author: Werner Lemberg <[email protected]>
date: Sun Feb 12 16:49:21 EST 2006

Formatting, copyright years.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,19 +3,19 @@
 	* src/autofit/afcjk.c (af_cjk_metrics_init): Fix a stupid bug...
 
 	* src/autofit/aflatin.c (af_latin_metrics_init_widths): Use
-	AF_LatinMetricsRec as the dummy metrics because we cast the metrics to
-	it later in `af_latin_hints_link_segments'.
+	AF_LatinMetricsRec as the dummy metrics because we cast the metrics
+	to it later in `af_latin_hints_link_segments'.
 
 2006-02-11  Chia-I Wu  <[email protected]>
 
 	* include/freetype/config/ftoption.h (AF_CONFIG_OPTION_CJK): #define
-	to enable autofit CJK script support. (#define'd by default)
+	to enable autofit CJK script support.  (#define'd by default.)
 
 	* src/autofit/aflatin.h (AF_LATIN_CONSTANT): New macro.
 
-	* src/autofit/aflatin.c (af_latin_metrics_init_widths): Make sure that
-	`edge_distance_threshold' is always set.
-	(af_latin_hints_link_segments): Potential divide by 0 bug.
+	* src/autofit/aflatin.c (af_latin_metrics_init_widths): Make sure
+	that `edge_distance_threshold' is always set.
+	(af_latin_hints_link_segments): Potential divide-by-zero bug.
 	Use latin constant in the scoring formula.
 
 	* src/autofit/afcjk.c: Minor updates due to the above three changes.
--- a/docs/CHANGES
+++ b/docs/CHANGES
@@ -132,8 +132,9 @@
 
     - Better AFM support.  This includes track kerning support.
 
-    - The  auto hinter now employs  a new algorithm, based  on akito's
-      patch, for the CJK script.
+    - The  auto hinter  now employs  a new  algorithm,  based on Akito
+      Hirai's patch, for the CJK script.
+
 
 ======================================================================
 
--- a/docs/TODO
+++ b/docs/TODO
@@ -33,7 +33,7 @@
 
 ------------------------------------------------------------------------
 
-Copyright 2001, 2002, 2003, 2004, 2005 by
+Copyright 2001, 2002, 2003, 2004, 2005, 2006 by
 David Turner, Robert Wilhelm, and Werner Lemberg.
 
 This  file  is  part  of the  FreeType  project, and may  only be  used,
--- a/src/autofit/aflatin.h
+++ b/src/autofit/aflatin.h
@@ -33,7 +33,8 @@
 
 /* constants are given with units_per_em == 2048 in mind */
 #define AF_LATIN_CONSTANT( metrics, c ) \
-  ( ( ( c ) * (FT_Long)( (AF_LatinMetrics)metrics )->units_per_em ) / 2048 )
+  ( ( (c) * (FT_Long)( (AF_LatinMetrics)(metrics) )->units_per_em ) / 2048 )
+
 
   /*************************************************************************/
   /*************************************************************************/