From ab5ce6431387be417bd312c9579208d902c9e222 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 3 Jul 2022 13:00:22 -0600 Subject: [PATCH] [VVAR] Rename vorg function for clarity --- src/hb-ot-font.cc | 6 +++--- src/hb-ot-var-hvar-table.hh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/hb-ot-font.cc b/src/hb-ot-font.cc index 406c379ee..2f206afb1 100644 --- a/src/hb-ot-font.cc +++ b/src/hb-ot-font.cc @@ -299,9 +299,9 @@ hb_ot_get_glyph_v_origin (hb_font_t *font, const OT::vmtx_accelerator_t &vmtx = *ot_face->vmtx; const OT::VVAR &VVAR = *vmtx.var_table; if (font->num_coords) - VVAR.get_vorg_var (glyph, - font->coords, font->num_coords, - &delta); + VVAR.get_vorg_delta_unscaled (glyph, + font->coords, font->num_coords, + &delta); #endif *y = font->em_scalef_y (VORG.get_y_origin (glyph) + delta); diff --git a/src/hb-ot-var-hvar-table.hh b/src/hb-ot-var-hvar-table.hh index c9ecc08eb..110d91e82 100644 --- a/src/hb-ot-var-hvar-table.hh +++ b/src/hb-ot-var-hvar-table.hh @@ -391,9 +391,9 @@ struct VVAR : HVARVVAR { bool subset (hb_subset_context_t *c) const { return HVARVVAR::_subset (c); } - bool get_vorg_var (hb_codepoint_t glyph, - const int *coords, unsigned int coord_count, - float *delta) const + bool get_vorg_delta_unscaled (hb_codepoint_t glyph, + const int *coords, unsigned int coord_count, + float *delta) const { if (!vorgMap) return false; uint32_t varidx = (this+vorgMap).map (glyph);