From 98c42b3bc72079a335937e5cee84fb5d6e8677da Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Tue, 30 Jun 2020 10:48:36 +0430 Subject: [PATCH] [fvar] Make AxisRecord fields protected --- src/hb-ot-var-fvar-table.hh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-var-fvar-table.hh b/src/hb-ot-var-fvar-table.hh index 1d1b9a3a3..dba877d0e 100644 --- a/src/hb-ot-var-fvar-table.hh +++ b/src/hb-ot-var-fvar-table.hh @@ -102,13 +102,15 @@ struct AxisRecord info->reserved = 0; } + hb_ot_name_id_t get_name_id () const { return axisNameID; } + bool sanitize (hb_sanitize_context_t *c) const { TRACE_SANITIZE (this); return_trace (c->check_struct (this)); } - public: + protected: Tag axisTag; /* Tag identifying the design variation for the axis. */ HBFixed minValue; /* The minimum coordinate value for the axis. */ HBFixed defaultValue; /* The default coordinate value for the axis. */ @@ -264,7 +266,7 @@ struct fvar if (!has_data ()) return; + get_axes () - | hb_map (&AxisRecord::axisNameID) + | hb_map (&AxisRecord::get_name_id) | hb_sink (nameids) ;