Merge branch 'pr/29'
This commit is contained in:
commit
fe47f51bab
@ -709,7 +709,7 @@ class DominionTabs:
|
|||||||
minFontsize = 6
|
minFontsize = 6
|
||||||
fontname = 'MinionPro-Regular'
|
fontname = 'MinionPro-Regular'
|
||||||
font = pdfmetrics.getFont(fontname)
|
font = pdfmetrics.getFont(fontname)
|
||||||
fontHeightRelative = (font.face.ascent + font.face.descent) / 1000
|
fontHeightRelative = (font.face.ascent + abs(font.face.descent)) / 1000.0
|
||||||
|
|
||||||
canFit = False
|
canFit = False
|
||||||
|
|
||||||
@ -744,8 +744,10 @@ class DominionTabs:
|
|||||||
if setTitle not in sets:
|
if setTitle not in sets:
|
||||||
sets.append(setTitle)
|
sets.append(setTitle)
|
||||||
|
|
||||||
|
# Centered on page
|
||||||
xPos = layout['width'] / 2
|
xPos = layout['width'] / 2
|
||||||
yPos = layout['minMarginHeight'] + availableMargin / 2
|
# Place at the very edge of the margin
|
||||||
|
yPos = layout['minMarginHeight']
|
||||||
|
|
||||||
if layout['rotation']:
|
if layout['rotation']:
|
||||||
self.canvas.rotate(layout['rotation'])
|
self.canvas.rotate(layout['rotation'])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user