Commit 52381c14e3a30a5597060894d9f049420a2f3ac0

Alexei Podtelezhnikov 2013-09-11T23:25:56

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

diff --git a/ChangeLog b/ChangeLog
index 79d1e37..bc8fb29 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-09-11  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* include/freetype/ftoutln.h: Correct FT_Outline_Get_Orientation
+	algorithm description.
+
 2013-09-11  Werner Lemberg  <wl@gnu.org>
 
 	[autofit] Improve Hebrew rendering.
diff --git a/include/freetype/ftoutln.h b/include/freetype/ftoutln.h
index 9b6a884..8c7c57d 100644
--- a/include/freetype/ftoutln.h
+++ b/include/freetype/ftoutln.h
@@ -532,9 +532,11 @@ FT_BEGIN_HEADER
   *
   * @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.