From 52381c14e3a30a5597060894d9f049420a2f3ac0 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Wed, 11 Sep 2013 23:25:56 -0400 Subject: [PATCH] * include/freetype/ftoutln.h: Correct FT_Outline_Get_Orientation algorithm description. --- ChangeLog | 5 +++++ include/freetype/ftoutln.h | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 79d1e37bd..bc8fb29e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-09-11 Alexei Podtelezhnikov + + * include/freetype/ftoutln.h: Correct FT_Outline_Get_Orientation + algorithm description. + 2013-09-11 Werner Lemberg [autofit] Improve Hebrew rendering. diff --git a/include/freetype/ftoutln.h b/include/freetype/ftoutln.h index 9b6a884dd..8c7c57d99 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.