Skip to content

Commit

Permalink
STY #90
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed May 17, 2022
1 parent bd97cee commit 28a8c93
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion adl2pydm/output_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,12 @@ def write_font_size(self, qw, block, **kwargs):
smallest = 4
largest = 10
margin = 3
pointsize = int(max(smallest, min(largest, block.geometry.height - 2 * margin)))
pointsize = int(
max(
smallest,
min(largest, block.geometry.height - 2 * margin)
)
)

propty = self.writer.writeOpenProperty(qw, "font", stdset="0")
font = self.writer.writeOpenTag(propty, "font")
Expand Down

0 comments on commit 28a8c93

Please sign in to comment.