shithub: freetype+ttf2subf

Download patch

ref: 52381c14e3a30a5597060894d9f049420a2f3ac0
parent: 3f542498b2c3d480238bd14fad76e1c3ef83f1b4
author: Alexei Podtelezhnikov <[email protected]>
date: Wed Sep 11 19:25:56 EDT 2013

* include/freetype/ftoutln.h: Correct FT_Outline_Get_Orientation
algorithm description.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-09-11  Alexei Podtelezhnikov  <[email protected]>
+
+	* include/freetype/ftoutln.h: Correct FT_Outline_Get_Orientation
+	algorithm description.
+
 2013-09-11  Werner Lemberg  <[email protected]>
 
 	[autofit] Improve Hebrew rendering.
--- a/include/freetype/ftoutln.h
+++ b/include/freetype/ftoutln.h
@@ -532,9 +532,11 @@
   *
   * @description:
   *   This function analyzes a glyph outline and tries to compute its
-  *   fill orientation (see @FT_Orientation).  This is done by computing
-  *   the direction of each global horizontal and/or vertical extrema
-  *   within the outline.
+  *   fill orientation (see @FT_Orientation).  This is done by integrating 
+  *   the total area covered by the outline. The positive integral
+  *   corresponds to the clockwise orientation and @FT_ORIENTATION_POSTSCRIPT
+  *   is returned. The negative integral corresponds to the counter-clockwise
+  *   orientation and @FT_ORIENTATION_TRUETYPE is returned.
   *
   *   Note that this will return @FT_ORIENTATION_TRUETYPE for empty
   *   outlines.