Fix build

This commit is contained in:
Behdad Esfahbod 2023-04-20 15:58:26 -06:00
parent 000a3c5dca
commit 32f145ff9c
1 changed files with 4 additions and 4 deletions

View File

@ -303,13 +303,13 @@ struct Glyph
if (unlikely (!points.resize (num_points))) return false; if (unlikely (!points.resize (num_points))) return false;
break; break;
} }
#ifndef HB_NO_VAR_COMPOSITES
case VAR_COMPOSITE: case VAR_COMPOSITE:
{ {
#ifndef HB_NO_VAR_COMPOSITES
for (auto &item : get_var_composite_iterator ()) for (auto &item : get_var_composite_iterator ())
if (unlikely (!item.get_points (points))) return false; if (unlikely (!item.get_points (points))) return false;
}
#endif #endif
}
case EMPTY: case EMPTY:
break; break;
} }
@ -437,9 +437,9 @@ struct Glyph
} }
all_points.extend (phantoms); all_points.extend (phantoms);
} break; } break;
#ifndef HB_NO_VAR_COMPOSITES
case VAR_COMPOSITE: case VAR_COMPOSITE:
{ {
#ifndef HB_NO_VAR_COMPOSITES
contour_point_vector_t comp_points; contour_point_vector_t comp_points;
hb_array_t<contour_point_t> points_left = points.as_array (); hb_array_t<contour_point_t> points_left = points.as_array ();
for (auto &item : get_var_composite_iterator ()) for (auto &item : get_var_composite_iterator ())
@ -486,8 +486,8 @@ struct Glyph
points_left += item.get_num_points (); points_left += item.get_num_points ();
} }
all_points.extend (phantoms); all_points.extend (phantoms);
} break;
#endif #endif
} break;
case EMPTY: case EMPTY:
all_points.extend (phantoms); all_points.extend (phantoms);
break; break;