mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 20:29:12 +02:00
Fix reading wrong property from font object for font string (#8315)
This commit is contained in:
parent
a730fc68fa
commit
32b3242585
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user