summaryrefslogtreecommitdiff
path: root/src/svg/qsvghandler.cpp
diff options
context:
space:
mode:
authorJonas Karlsson <jonas.karlsson@qt.io>2020-08-06 17:05:45 +0200
committerJonas Karlsson <jonas.karlsson@qt.io>2020-08-28 15:46:58 +0200
commit6b0ea2b0413be93b17ad1e328027531af9ff1cb5 (patch)
tree5149e7480b12fa976ec6429998bfe5f0ef87d25f /src/svg/qsvghandler.cpp
parente3a5c2a5686845f0159f8091697961cd634cbc8e (diff)
downloadqtsvg-6b0ea2b0413be93b17ad1e328027531af9ff1cb5.tar.gz
Use OpenType font weights
Task-number: QTBUG-42248 Change-Id: If3984fa22b89a65fd126d42b3a2320d5ab16c94b Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/svg/qsvghandler.cpp')
-rw-r--r--src/svg/qsvghandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp
index 62fe3d3..15fb46b 100644
--- a/src/svg/qsvghandler.cpp
+++ b/src/svg/qsvghandler.cpp
@@ -1369,9 +1369,9 @@ static void parseFont(QSvgNode *node,
fontStyle->setWeight(weightNum);
} else {
if (attributes.fontWeight == QLatin1String("normal")) {
- fontStyle->setWeight(400);
+ fontStyle->setWeight(QFont::Normal);
} else if (attributes.fontWeight == QLatin1String("bold")) {
- fontStyle->setWeight(700);
+ fontStyle->setWeight(QFont::Bold);
} else if (attributes.fontWeight == QLatin1String("bolder")) {
fontStyle->setWeight(QSvgFontStyle::BOLDER);
} else if (attributes.fontWeight == QLatin1String("lighter")) {