Revert "[glyf] Use component phantom points after transformation"
This reverts commit a756bd1944
.
Fixes https://github.com/harfbuzz/harfbuzz/issues/3929
This commit is contained in:
parent
7f73b57bc1
commit
9ab2c8034e
|
@ -324,6 +324,11 @@ struct Glyph
|
||||||
depth + 1)))
|
depth + 1)))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
/* Copy phantom points from component if USE_MY_METRICS flag set */
|
||||||
|
if (use_my_metrics && item.is_use_my_metrics ())
|
||||||
|
for (unsigned int i = 0; i < PHANTOM_COUNT; i++)
|
||||||
|
phantoms[i] = comp_points[comp_points.length - PHANTOM_COUNT + i];
|
||||||
|
|
||||||
/* Apply component transformation & translation */
|
/* Apply component transformation & translation */
|
||||||
item.transform_points (comp_points);
|
item.transform_points (comp_points);
|
||||||
|
|
||||||
|
@ -344,16 +349,11 @@ struct Glyph
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Copy phantom points from component if USE_MY_METRICS flag set */
|
all_points.extend (comp_points.as_array ().sub_array (0, comp_points.length - PHANTOM_COUNT));
|
||||||
if (use_my_metrics && item.is_use_my_metrics ())
|
|
||||||
for (unsigned int i = 0; i < PHANTOM_COUNT; i++)
|
|
||||||
phantoms[i] = comp_points[comp_points.length - PHANTOM_COUNT + i];
|
|
||||||
|
|
||||||
if (all_points.length > HB_GLYF_MAX_POINTS)
|
if (all_points.length > HB_GLYF_MAX_POINTS)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
all_points.extend (comp_points.as_array ().sub_array (0, comp_points.length - PHANTOM_COUNT));
|
|
||||||
|
|
||||||
comp_index++;
|
comp_index++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -395,6 +395,9 @@ struct Glyph
|
||||||
|
|
||||||
all_points.extend (comp_points.as_array ().sub_array (0, comp_points.length - PHANTOM_COUNT));
|
all_points.extend (comp_points.as_array ().sub_array (0, comp_points.length - PHANTOM_COUNT));
|
||||||
|
|
||||||
|
if (all_points.length > HB_GLYF_MAX_POINTS)
|
||||||
|
return false;
|
||||||
|
|
||||||
points_left += item.get_num_points ();
|
points_left += item.get_num_points ();
|
||||||
}
|
}
|
||||||
all_points.extend (phantoms);
|
all_points.extend (phantoms);
|
||||||
|
|
Loading…
Reference in New Issue