From 390ec570345bed2e4f0d2e1cc2742d9f89240585 Mon Sep 17 00:00:00 2001 From: Raphael Voellmy Date: Sat, 26 Oct 2019 14:30:47 +0200 Subject: [PATCH] fix(chord chart): apply the font family to the chord chart title --- src/svguitar.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/svguitar.ts b/src/svguitar.ts index b39b9a6..d81f54a 100644 --- a/src/svguitar.ts +++ b/src/svguitar.ts @@ -589,6 +589,7 @@ export class SVGuitarChord { private drawTitle(size: number): number { const color = this.settings.color || defaultSettings.color const titleBottomMargin = this.settings.titleBottomMargin || defaultSettings.titleBottomMargin + const fontFamily = this.settings.fontFamily || defaultSettings.fontFamily // draw the title const text = this.svg @@ -596,7 +597,7 @@ export class SVGuitarChord { .fill(color) .move(constants.width / 2, 5) .font({ - family: this.settings.fontFamily, + family: fontFamily, size, anchor: 'middle' })