diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2017-06-30 10:07:29 +0200 |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2017-06-30 11:01:52 +0000 |
commit | 441e0b41bf5b700cdaa3b0ba2393c487ed4b9de5 (patch) | |
tree | e30dc7a61e334f9641776a70f9efdc7822f6f8e9 /tests/manual/scenegraph_lancelot/data/text | |
parent | 2969c92c82e67beb592542cb34a3cbd65ed2fb16 (diff) |
Expose "kerning" property for fonts
For text where the content is known, it can be handy to be able
to disable the kerning feature in OpenType to improve performance.
[ChangeLog][Qt Quick][Text] Added "kerning" property to the font
type to support disabling kerning on text.
Task-number: QTBUG-56728
Change-Id: I2e447587a066a7e12c5d38967e0845eaad021014
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/manual/scenegraph_lancelot/data/text')
-rw-r--r-- | tests/manual/scenegraph_lancelot/data/text/text_nokerning_latin.qml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/manual/scenegraph_lancelot/data/text/text_nokerning_latin.qml b/tests/manual/scenegraph_lancelot/data/text/text_nokerning_latin.qml new file mode 100644 index 0000000000..fd1d082c99 --- /dev/null +++ b/tests/manual/scenegraph_lancelot/data/text/text_nokerning_latin.qml @@ -0,0 +1,16 @@ +import QtQuick 2.0 + +Item { + width: 320 + height: 480 + + Text { + text: "OATS FLAVOUR WAY" + anchors.centerIn: parent + + font.family: "Times New Roman" + font.italic: true + font.pixelSize: 30 + font.kerning: false + } +} |