qskinny icon indicating copy to clipboard operation
qskinny copied to clipboard

Fontroles and lineHeights

Open uwerat opened this issue 1 year ago • 0 comments

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.

uwerat avatar Feb 22 '24 11:02 uwerat