mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
fix build
This commit is contained in:
parent
84771374e8
commit
4d5fb233e3
2 changed files with 7 additions and 5 deletions
|
@ -1567,7 +1567,7 @@ struct tuple_delta_t
|
|||
bool force = false;
|
||||
if (c1 == c2)
|
||||
{
|
||||
if (fabsf (d1 - d2) > tolerance && fabsf (dj) > tolerance)
|
||||
if (abs (d1 - d2) > tolerance && abs (dj) > tolerance)
|
||||
force = true;
|
||||
}
|
||||
else if (c1 <= cj && cj <= c2)
|
||||
|
@ -1582,15 +1582,15 @@ struct tuple_delta_t
|
|||
{
|
||||
if (cj < c1)
|
||||
{
|
||||
if (fabsf (dj) > tolerance &&
|
||||
fabsf (dj - d1) > tolerance &&
|
||||
if (abs (dj) > tolerance &&
|
||||
abs (dj - d1) > tolerance &&
|
||||
((dj - tolerance < d1) != (d1 < d2)))
|
||||
force = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (fabsf (dj) > tolerance &&
|
||||
fabsf (dj - d2) > tolerance &&
|
||||
if (abs (dj) > tolerance &&
|
||||
abs (dj - d2) > tolerance &&
|
||||
((d2 < dj + tolerance) != (d1 < d2)))
|
||||
force = true;
|
||||
}
|
||||
|
|
|
@ -1098,9 +1098,11 @@ _get_instance_glyphs_contour_points (hb_subset_plan_t *plan)
|
|||
if (unlikely (!plan->new_gid_contour_points_map.set (new_gid, all_points)))
|
||||
return false;
|
||||
|
||||
#ifdef HB_EXPERIMENTAL_API
|
||||
/* composite new gids are only needed by iup delta optimization */
|
||||
if ((plan->flags & HB_SUBSET_FLAGS_IUP_DELTA_OPT) && glyph.is_composite ())
|
||||
plan->composite_new_gids.add (new_gid);
|
||||
#endif
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue