From 5cf0b9ae7d21cdce0c822ac1f6fb8de1e922aed8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 9 Dec 2022 18:59:43 -0700 Subject: [PATCH] [varc] Mark as experimental feature with HB_NO_VAR_COMPOSITES --- src/OT/glyf/Glyph.hh | 4 ++++ src/hb-config.hh | 1 + 2 files changed, 5 insertions(+) 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