qskinny
qskinny copied to clipboard
Fontroles and lineHeights
Fluent2 and Material3 define specific line heights depending on the fontRole. However the line height is not an an attribute of QFont - it has to be passed as parameter to the text renderers.
QskRichTextRenderer: see QQuickText::setLineHeight QskPlainTextRenderer: see QQuickTextPrivate::updateLayout
Note that layout code using QFontMetricsF::boundingRect might be broken for multiline texts.