Skip to content

Commit

Permalink
Fix reading wrong property from font object for font string (#8315)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeLenaleee committed Jan 16, 2021
1 parent a730fc6 commit 32b3242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/helpers.canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export function renderText(ctx, text, x, y, font, opts = {}) {
ctx.rotate(opts.rotation);
}

ctx.font = font.fontString;
ctx.font = font.string;

if (opts.color) {
ctx.fillStyle = opts.color;
Expand Down

0 comments on commit 32b3242

Please sign in to comment.