diff options
author | Topi Reinio <topi.reinio@qt.io> | 2023-10-19 11:36:55 +0000 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-11-11 10:46:02 +0000 |
commit | e3e5462fb749136b5b93feb90438b266e63f31fe (patch) | |
tree | 60181fd59b65445c1f747aa1689fbc1c83fbf830 | |
parent | d827bed6b21bba5fb3fdbdf1b9f56064bad6741e (diff) |
Doc: Update documentation for QML font.weight values
The numerical values used in font.weight follow the ones used in CSS.
Pick-to: 6.5
Fixes: QTBUG-118237
Change-Id: I654b614a73e30e3088d21093916bbca951d4b922
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
(cherry picked from commit 1c39eddbde185c2ef28c81366ecd556e83dddcf6)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/quick/doc/src/qmltypereference.qdoc | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/quick/doc/src/qmltypereference.qdoc b/src/quick/doc/src/qmltypereference.qdoc index 6b69186459..dd10c2f609 100644 --- a/src/quick/doc/src/qmltypereference.qdoc +++ b/src/quick/doc/src/qmltypereference.qdoc @@ -168,18 +168,19 @@ available when you import \c QtQuick. This value type is provided by the QtQuick import. - Font weighting is classified on a scale from 0 to 99, where a weight of 0 is ultralight, - and 99 is extremely black. The following values are supported: - - \value Font.Thin 0 - \value Font.ExtraLight 12 - \value Font.Light 25 - \value Font.Normal 50 - \value Font.Medium 57 - \value Font.DemiBold 63 - \value Font.Bold 75 - \value Font.ExtraBold 81 - \value Font.Black 87 + Numerical values for font weights follow the CSS specification, where a + weight of 100 is extremely light, and 900 is extremely bold. + The following values are supported: + + \value Font.Thin 100 + \value Font.ExtraLight 200 + \value Font.Light 300 + \value Font.Normal 400 + \value Font.Medium 500 + \value Font.DemiBold 600 + \value Font.Bold 700 + \value Font.ExtraBold 800 + \value Font.Black 900 Capitalization supports the following values: |