Skip to content

Commit

Permalink
Title Editor: QFont.setPixelSize() takes int args
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed Mar 14, 2022
1 parent 2bb5dce commit 88e992f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows/title_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def load_svg_template(self, filename_field=None):
ard = style_to_dict(s)
fs = ard.get("font-size")
if fs and fs.endswith("px"):
self.qfont.setPixelSize(float(fs[:-2]))
self.qfont.setPixelSize(int(float(fs[:-2])))
elif fs and fs.endswith("pt"):
self.qfont.setPointSizeF(float(fs[:-2]))

Expand Down

0 comments on commit 88e992f

Please sign in to comment.