Support line height in build tool (#1935)

This commit is contained in:
Veronica Berglyd Olsen authored and GitHub committed 2024-06-16 15:10:39 +02:00
commit e9e7fae40e
1 file changed
+3
+3
View File
@@ -136,6 +136,9 @@ class ToQTextDocument(Tokenizer):
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
# =================