diff --git a/chordsheet/render.py b/chordsheet/render.py index 7fec89d..35247f0 100644 --- a/chordsheet/render.py +++ b/chordsheet/render.py @@ -49,7 +49,7 @@ class Tempo(Flowable): self.tempo = tempo self.text = "♩ = {t} bpm".format(t=self.tempo) self.fontSize = paraStyle.fontSize - self.fontname = paraStyle.fontname + self.fontName = paraStyle.fontName self.leading = paraStyle.leading def wrap(self, availWidth, availHeight): @@ -59,7 +59,7 @@ class Tempo(Flowable): def draw(self): canvas = self.canv - canvas.setFont(self.fontname, self.fontSize) + canvas.setFont(self.fontName, self.fontSize) canvas.drawString(0, self.leading * 0.25, self.text) diff --git a/chordsheet/rlStylesheet.py b/chordsheet/rlStylesheet.py index 95eb3e6..fb14ff7 100644 --- a/chordsheet/rlStylesheet.py +++ b/chordsheet/rlStylesheet.py @@ -10,7 +10,7 @@ def getStyleSheet(csStyle): stylesheet = StyleSheet1() stylesheet.add(ParagraphStyle(name='Master', - fontname=csStyle.font)) + fontName=csStyle.font)) stylesheet.add(ParagraphStyle(name='Title', leading=csStyle.lineSpacing*csStyle.titleFontSize,