Skip to content

Commit

Permalink
Support line height in build tool (#1935)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkbo committed Jun 16, 2024
2 parents aff027b + ac05b07 commit e9e7fae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions novelwriter/core/toqdoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ def initDocument(self, font: QFont, theme: TextDocumentTheme) -> None:
self._blockFmt.setTopMargin(self._mText[0])
self._blockFmt.setBottomMargin(self._mText[1])
self._blockFmt.setAlignment(QtAlignJustify if self._doJustify else QtAlignAbsolute)
self._blockFmt.setLineHeight(
100*self._lineHeight, QTextBlockFormat.LineHeightTypes.ProportionalHeight
)

# Character Formats
# =================
Expand Down

0 comments on commit e9e7fae

Please sign in to comment.