From 9f974cae4a0f94f069f710ad04541f791d2aef16 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 3 Jul 2022 13:03:12 -0600 Subject: [PATCH] [hvar] Rename lsb function for clarity --- src/hb-ot-hmtx-table.hh | 4 ++-- src/hb-ot-var-hvar-table.hh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hb-ot-hmtx-table.hh b/src/hb-ot-hmtx-table.hh index 9bb99471e..3324806aa 100644 --- a/src/hb-ot-hmtx-table.hh +++ b/src/hb-ot-hmtx-table.hh @@ -242,8 +242,8 @@ struct hmtxvmtx return side_bearing; float lsb; - if (var_table->get_side_bearing_var (glyph, font->coords, font->num_coords, &lsb)) - return side_bearing + lsb; + if (var_table->get_lsb_delta_unscaled (glyph, font->coords, font->num_coords, &lsb)) + return side_bearing + roundf (lsb); return _glyf_get_side_bearing_var (font, glyph, T::tableTag == HB_OT_TAG_vmtx); #else diff --git a/src/hb-ot-var-hvar-table.hh b/src/hb-ot-var-hvar-table.hh index 110d91e82..dc49e3358 100644 --- a/src/hb-ot-var-hvar-table.hh +++ b/src/hb-ot-var-hvar-table.hh @@ -329,9 +329,9 @@ struct HVARVVAR store_cache); } - bool get_side_bearing_var (hb_codepoint_t glyph, - const int *coords, unsigned int coord_count, - float *lsb) const + bool get_lsb_delta_unscaled (hb_codepoint_t glyph, + const int *coords, unsigned int coord_count, + float *lsb) const { if (!lsbMap) return false; uint32_t varidx = (this+lsbMap).map (glyph);