add font style

This commit is contained in:
王劲鹏
2021-05-19 14:27:44 +08:00
committed by osborn
parent 13c33adedd
commit e7dc7e957e
2 changed files with 15 additions and 0 deletions

View File

@@ -30,6 +30,8 @@ void DoricTextNode::blend(QQuickItem *view, QString name, QJsonValue prop) {
view->setProperty("font", QVariant(font));
} else if (name == "textAlignment") {
view->setProperty("textAlignment", prop.toInt());
} else if (name == "fontStyle") {
view->setProperty("fontStyle", prop.toString());
} else {
DoricViewNode::blend(view, name, prop);
}