Support line height in build tool (#1935)

This commit is contained in:
Veronica Berglyd Olsen
2024-06-16 15:10:39 +02:00
committed by GitHub
+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
# =================