mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
[COLRv1] Fix a couple of missing to_float() calls
Ouch!
This commit is contained in:
1 parent
d045de78c1
commit
dfd9bf8a50
1 file changed
+2
-2
@@ -1004,7 +1004,7 @@ struct PaintScaleUniform
|
||||
|
||||
void paint_glyph (hb_paint_context_t *c, uint32_t varIdxBase) const
|
||||
{
|
||||
float s = scale + 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 + 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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user