forked from minhngoc25a/freetype2
* src/autofit/aflatin.c (af_latin_hints_compute_segments): Set `segment->delta' everywhere.
This commit is contained in:
parent
21658c31f7
commit
96dcc8ad6e
|
@ -1,3 +1,10 @@
|
||||||
|
2017-09-13 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
[autofit] Really fix #41334 (#52000).
|
||||||
|
|
||||||
|
* src/autofit/aflatin.c (af_latin_hints_compute_segments): Set
|
||||||
|
`segment->delta' everywhere.
|
||||||
|
|
||||||
2017-09-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
|
2017-09-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
|
||||||
|
|
||||||
[autofit, sfnt] Fix for `make multi'.
|
[autofit, sfnt] Fix for `make multi'.
|
||||||
|
|
|
@ -1693,6 +1693,8 @@
|
||||||
prev_segment->last = point;
|
prev_segment->last = point;
|
||||||
prev_segment->pos = (FT_Short)( ( min_pos +
|
prev_segment->pos = (FT_Short)( ( min_pos +
|
||||||
max_pos ) >> 1 );
|
max_pos ) >> 1 );
|
||||||
|
prev_segment->delta = (FT_Short)( ( max_pos -
|
||||||
|
min_pos ) >> 1 );
|
||||||
|
|
||||||
if ( ( min_flags | max_flags ) & AF_FLAG_CONTROL &&
|
if ( ( min_flags | max_flags ) & AF_FLAG_CONTROL &&
|
||||||
( max_on_coord - min_on_coord ) < flat_threshold )
|
( max_on_coord - min_on_coord ) < flat_threshold )
|
||||||
|
@ -1723,6 +1725,8 @@
|
||||||
prev_segment->last = point;
|
prev_segment->last = point;
|
||||||
prev_segment->pos = (FT_Short)( ( prev_min_pos +
|
prev_segment->pos = (FT_Short)( ( prev_min_pos +
|
||||||
prev_max_pos ) >> 1 );
|
prev_max_pos ) >> 1 );
|
||||||
|
prev_segment->delta = (FT_Short)( ( prev_max_pos -
|
||||||
|
prev_min_pos ) >> 1 );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1735,6 +1739,7 @@
|
||||||
|
|
||||||
segment->last = point;
|
segment->last = point;
|
||||||
segment->pos = (FT_Short)( ( min_pos + max_pos ) >> 1 );
|
segment->pos = (FT_Short)( ( min_pos + max_pos ) >> 1 );
|
||||||
|
segment->delta = (FT_Short)( ( max_pos - min_pos ) >> 1 );
|
||||||
|
|
||||||
if ( ( min_flags | max_flags ) & AF_FLAG_CONTROL &&
|
if ( ( min_flags | max_flags ) & AF_FLAG_CONTROL &&
|
||||||
( max_on_coord - min_on_coord ) < flat_threshold )
|
( max_on_coord - min_on_coord ) < flat_threshold )
|
||||||
|
|
Loading…
Reference in New Issue