Read Title font options from correct place (#7502)

This commit is contained in:
Jukka Kurkela
2020-06-13 00:58:09 +03:00
committed by Evert Timberg
parent c1c8037b28
commit 55fddd05b0

View File

@@ -144,7 +144,7 @@ export class Title extends Element {
return;
}
const fontOpts = toFont(opts);
const fontOpts = toFont(opts.font);
const lineHeight = fontOpts.lineHeight;
const offset = lineHeight / 2 + me._padding.top;
let rotation = 0;