From 70f4cff19d0b555cf4a217de6cd114af750dddcf Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sat, 20 Sep 2008 16:12:05 +0000 Subject: [PATCH] * src/smooth/ftgrays.c (gray_find_cell): Fix threshold. The values passed to this function are already `normalized'. Problem reported by Stephan T. Lavavej . * docs/CHANGES: Document it. --- ChangeLog | 10 +++++++++- docs/CHANGES | 6 ++++++ src/smooth/ftgrays.c | 4 ++-- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8e1d85245..291b32903 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-09-20 Werner Lemberg + + * src/smooth/ftgrays.c (gray_find_cell): Fix threshold. The values + passed to this function are already `normalized'. Problem reported + by Stephan T. Lavavej . + + * docs/CHANGES: Document it. + 2008-09-20 Werner Lemberg * src/base/ftoutln.c: Include FT_INTERNAL_DEBUG_H. @@ -16,7 +24,7 @@ (gray_hline) [FT_DEBUG_LEVEL_TRACE]: Fix condition. Use FT_TRACE7. (gray_dump_cells): Make it `static void'. - (graay_convert_glyph): Use FT_TRACE7. + (gray_convert_glyph): Use FT_TRACE7. (FT_Outline_Decompose) [_STANDALONE_]: Synchronize with version in ftoutln.c. diff --git a/docs/CHANGES b/docs/CHANGES index 530b9517e..2b2b0166d 100644 --- a/docs/CHANGES +++ b/docs/CHANGES @@ -4,6 +4,12 @@ CHANGES BETWEEN 2.3.8 and 2.3.7 - CID-keyed fonts in an SFNT wrapper were not handled correctly. + - The smooth renderer produced truncated images (on the right) for + outline parts with negative horizontal values. Most fonts don't + contain outlines left to the y coordinate axis, but the effect + was very noticeable for outlines processed with FT_Glyph_Stroke, + using thick strokes. + II. IMPORTANT CHANGES diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c index 4345fbd54..054cf6cd4 100644 --- a/src/smooth/ftgrays.c +++ b/src/smooth/ftgrays.c @@ -431,8 +431,8 @@ int x = ras.ex; - if ( x > ras.max_ex ) - x = ras.max_ex; + if ( x > ras.count_ex ) + x = ras.count_ex; pcell = &ras.ycells[ras.ey]; for (;;)