From: LeeLenaleee <39033624+LeeLenaleee@users.noreply.github.com> Date: Sat, 16 Jan 2021 19:13:13 +0000 (+0100) Subject: Fix reading wrong property from font object for font string (#8315) X-Git-Tag: v3.0.0-beta.9~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32b3242585e15cd21268fc76fe8a362ced504ed1;p=thirdparty%2FChart.js.git Fix reading wrong property from font object for font string (#8315) --- diff --git a/src/helpers/helpers.canvas.js b/src/helpers/helpers.canvas.js index 0d590444e..064c5e9c4 100644 --- a/src/helpers/helpers.canvas.js +++ b/src/helpers/helpers.canvas.js @@ -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;