Skip to content

Commit

Permalink
fix #20 Baseline alignment needs to offset from zero
Browse files Browse the repository at this point in the history
  • Loading branch information
easytarget committed Jul 25, 2024
1 parent 51bb5a0 commit cc5fd0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ezFBfont.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def write(self, string, x, y, fg=None, bg=None, tkey=None,
high = (len(lines) * (self._font.height() + self.vgap)) - self.vgap
ypos = y
if valign == 'baseline':
ypos = y - self._font.baseline()
ypos = y - self._font.baseline() + 1
elif valign == 'center':
ypos = int(y - (high / 2))
elif valign == 'bottom':
Expand Down

0 comments on commit cc5fd0b

Please sign in to comment.