[COLRv1] Fix scale variation

This commit is contained in:
Behdad Esfahbod 2023-01-07 14:29:18 -07:00
parent 004cdc10f8
commit 65c3cde5da
1 changed files with 2 additions and 2 deletions

View File

@ -1004,7 +1004,7 @@ struct PaintScaleUniform
void paint_glyph (hb_paint_context_t *c, uint32_t varIdxBase) const
{
float s = scale.to_float () + c->instancer (varIdxBase, 0);
float s = scale.to_float (c->instancer (varIdxBase, 0));
bool p1 = c->funcs->push_scale (c->data, s, s);
c->recurse (this+src);
@ -1039,7 +1039,7 @@ struct PaintScaleUniformAroundCenter
void paint_glyph (hb_paint_context_t *c, uint32_t varIdxBase) const
{
float s = scale.to_float () + c->instancer (varIdxBase, 0);
float s = scale.to_float (c->instancer (varIdxBase, 0));
float tCenterX = centerX + c->instancer (varIdxBase, 1);
float tCenterY = centerY + c->instancer (varIdxBase, 2);