diff --git a/src/OT/glyf/Glyph.hh b/src/OT/glyf/Glyph.hh index 0ba4c970e..94f2790f8 100644 --- a/src/OT/glyf/Glyph.hh +++ b/src/OT/glyf/Glyph.hh @@ -236,11 +236,13 @@ struct Glyph if (unlikely (!points.resize (num_points))) return false; break; } +#ifndef HB_NO_VAR_COMPOSITES case VAR_COMPOSITE: { for (auto &item : get_var_composite_iterator ()) if (unlikely (!item.get_points (points))) return false; } +#endif default: break; } @@ -357,6 +359,7 @@ struct Glyph all_points.extend (phantoms); } break; +#ifndef HB_NO_VAR_COMPOSITES case VAR_COMPOSITE: { contour_point_vector_t comp_points; @@ -396,6 +399,7 @@ struct Glyph } all_points.extend (phantoms); } break; +#endif default: all_points.extend (phantoms); break; diff --git a/src/hb-config.hh b/src/hb-config.hh index 81c5b83df..c59e17c16 100644 --- a/src/hb-config.hh +++ b/src/hb-config.hh @@ -37,6 +37,7 @@ #ifndef HB_EXPERIMENTAL #define HB_NO_BEYOND_64K +#define HB_NO_VAR_COMPOSITES #endif #ifdef HB_TINY