Skip to content

Commit

Permalink
fix(apply font family to the tunings): chord chart
Browse files Browse the repository at this point in the history
  • Loading branch information
omnibrain committed Oct 26, 2019
1 parent 390ec57 commit 79c3d3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/svguitar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ export class SVGuitarChord {
const strings = this.settings.strings || defaultSettings.strings
const color = this.settings.tuningsColor || this.settings.color || defaultSettings.color
const tuning = this.settings.tuning || defaultSettings.tuning
const fontFamily = this.settings.fontFamily || defaultSettings.fontFamily

let text: Element | undefined

Expand All @@ -320,7 +321,7 @@ export class SVGuitarChord {
.text(tuning)
.move(stringXPositions[i], y + padding)
.font({
family: this.settings.fontFamily,
family: fontFamily,
size: this.settings.tuningsFontSize,
anchor: 'middle'
})
Expand Down

0 comments on commit 79c3d3f

Please sign in to comment.