From dcfd309533ac83e44369dea7204d668623b08207 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 9 Sep 2016 16:51:07 -0700 Subject: [PATCH] [GX] Change GDEF API to return varStore --- src/hb-ot-layout-gdef-table.hh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/hb-ot-layout-gdef-table.hh b/src/hb-ot-layout-gdef-table.hh index f8bbe3130..e7d14f660 100644 --- a/src/hb-ot-layout-gdef-table.hh +++ b/src/hb-ot-layout-gdef-table.hh @@ -374,9 +374,8 @@ struct GDEF { return version.to_int () >= 0x00010002u && (this+markGlyphSetsDef).covers (set_index, glyph_id); } inline bool has_var_store (void) const { return version.to_int () >= 0x00010003u && varStore != 0; } - inline float get_var_delta (unsigned int outer, unsigned int inner, - int *coords, unsigned int coord_count) const - { return version.to_int () >= 0x00010003u ? (this+varStore).get_delta (outer, inner, coords, coord_count) : 0.; } + inline const VarStore &get_var_store (void) const + { return version.to_int () >= 0x00010003u ? this+varStore : Null(VarStore); } inline bool sanitize (hb_sanitize_context_t *c) const {