Skip to content

Commit

Permalink
Add line height formatting to build preview (#1920)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkbo committed Jun 16, 2024
1 parent aff027b commit ac05b07
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 ac05b07

Please sign in to comment.