-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.0, 6.10.0
-
None
In Qt 5, we could specify font family fallbacks with the QML font.family property:
Text {
text: "Hello 世界"
font.family: "Comic Sans MS, Microsoft YaHei"
}
which is no longer valid in Qt 6. So that we need to introduce a new font.families property to expose the QFont::familes() and QFont::setFamiles() functions:
Text {
text: "Hello 世界"
font.families: [ "Comic Sans MS", "Microsoft YaHei" ]
}