* src/autofit/afhints.c (af_glyph_hints_reload): Use do-while loop.

2.6.5
Alexei Podtelezhnikov 10 years ago
parent 770b5d0647
commit 67b912d2fa
  1. 4
      ChangeLog
  2. 15
      src/autofit/afhints.c

@ -1,3 +1,7 @@
2015-04-03 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/autofit/afhints.c (af_glyph_hints_reload): Use do-while loop.
2015-04-02 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/autofit/aflatin.c (af_latin_hint_edges): Reduce logic.

@ -792,8 +792,6 @@
FT_Pos out_x, out_y;
FT_Bool is_first;
/* since the first point of a contour could be part of a */
/* series of near points, go backwards to find the first */
@ -844,17 +842,13 @@
out_x = 0;
out_y = 0;
is_first = 1;
for ( point = first;
point != first || is_first;
point = point->next )
next = first;
do
{
AF_Direction out_dir;
is_first = 0;
point = next;
next = point->next;
out_x += next->fx - point->fx;
@ -886,7 +880,8 @@
out_x = 0;
out_y = 0;
}
} while ( next != first );
}
/*

Loading…
Cancel
Save