From 9aa5805a44e883c3dcb09a43e952b8bf40016423 Mon Sep 17 00:00:00 2001 From: Michiharu Ariza Date: Fri, 1 Mar 2019 18:24:56 -0800 Subject: [PATCH] more build fixes --- src/hb-ot-glyf-table.hh | 2 +- src/hb-ot-var-gvar-table.hh | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/hb-ot-glyf-table.hh b/src/hb-ot-glyf-table.hh index 028722c49..d86894b0f 100644 --- a/src/hb-ot-glyf-table.hh +++ b/src/hb-ot-glyf-table.hh @@ -359,7 +359,7 @@ struct glyf coord_setter.set (_points[i], v); } return true; - }; + } /* for a simple glyph, return contour end points, flags, along with coordinate points * for a composite glyph, return pseudo component points diff --git a/src/hb-ot-var-gvar-table.hh b/src/hb-ot-var-gvar-table.hh index 455d051dc..805c68c68 100644 --- a/src/hb-ot-var-gvar-table.hh +++ b/src/hb-ot-var-gvar-table.hh @@ -177,7 +177,7 @@ struct GlyphVarData return (index < var_data->tupleVarCount.get_count ()) && in_range (current_tuple) && current_tuple->get_size (axis_count); - }; + } bool move_to_next () { @@ -345,7 +345,6 @@ struct gvar const HBUINT16 *get_short_offset_array () const { return (const HBUINT16 *)&offsetZ; } typedef glyf::accelerator_t::contour_point_t contour_point_t; - typedef glyf::accelerator_t::phantom_point_index_t pp_t; typedef glyf::accelerator_t::range_checker_t range_checker_t; public: @@ -439,8 +438,8 @@ struct gvar if (!glyf_accel.get_contour_points (glyph, true, points, end_points)) return false; if (!apply_deltas_to_points (glyph, coords, coord_count, points.as_array (), end_points.as_array ())) return false; - for (unsigned int i = 0; i < pp_t::PHANTOM_COUNT; i++) - phantoms[i] = points[points.length - pp_t::PHANTOM_COUNT + i]; + for (unsigned int i = 0; i < glyf::accelerator_t::PHANTOM_COUNT; i++) + phantoms[i] = points[points.length - glyf::accelerator_t::PHANTOM_COUNT + i]; glyf::CompositeGlyphHeader::Iterator composite; if (!glyf_accel.get_composite (glyph, &composite)) return true; /* simple glyph */ @@ -462,15 +461,15 @@ struct gvar if (coord_count != gvar_table->axisCount) return advance; hb_vector_t points; - points.resize (pp_t::PHANTOM_COUNT); + points.resize (glyf::accelerator_t::PHANTOM_COUNT); if (!get_var_metrics (glyph, coords, coord_count, points)) return advance; if (vertical) - return -(points[pp_t::PHANTOM_BOTTOM].y - points[pp_t::PHANTOM_TOP].y); // is this sign correct? + return -(points[glyf::accelerator_t::PHANTOM_BOTTOM].y - points[glyf::accelerator_t::PHANTOM_TOP].y); // is this sign correct? else - return points[pp_t::PHANTOM_RIGHT].x - points[pp_t::PHANTOM_LEFT].x; + return points[glyf::accelerator_t::PHANTOM_RIGHT].x - points[glyf::accelerator_t::PHANTOM_LEFT].x; } protected: