[subset-cff] Minor hide num_coords again
This commit is contained in:
parent
576b36a31b
commit
76879c5763
|
@ -163,10 +163,11 @@ struct cff2_cs_interp_env_t : cs_interp_env_t<ELEM, CFF2Subrs>
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
bool have_coords () const { return num_coords; }
|
||||||
|
|
||||||
|
protected:
|
||||||
const int *coords;
|
const int *coords;
|
||||||
unsigned int num_coords;
|
unsigned int num_coords;
|
||||||
protected:
|
|
||||||
const CFF2VariationStore *varStore;
|
const CFF2VariationStore *varStore;
|
||||||
unsigned int region_count;
|
unsigned int region_count;
|
||||||
unsigned int ivs;
|
unsigned int ivs;
|
||||||
|
@ -223,7 +224,7 @@ struct cff2_cs_opset_t : cs_opset_t<ELEM, OPSET, cff2_cs_interp_env_t<ELEM>, PAR
|
||||||
const hb_array_t<const ELEM> blends,
|
const hb_array_t<const ELEM> blends,
|
||||||
unsigned n, unsigned i)
|
unsigned n, unsigned i)
|
||||||
{
|
{
|
||||||
if (env.num_coords)
|
if (env.have_coords ())
|
||||||
arg.set_int (round (arg.to_real () + env.blend_deltas (blends)));
|
arg.set_int (round (arg.to_real () + env.blend_deltas (blends)));
|
||||||
else
|
else
|
||||||
arg.set_blends (n, i, blends);
|
arg.set_blends (n, i, blends);
|
||||||
|
|
Loading…
Reference in New Issue