| 1 |
import QtQuick 2.0 |
| 2 |
|
| 3 |
//vary font scale with smoothing |
| 4 |
|
| 5 |
Item { |
| 6 |
width: 320 |
| 7 |
height: 480 |
| 8 |
property bool smoothing: true |
| 9 |
Text { |
| 10 |
id: text_0000 |
| 11 |
x: 0 |
| 12 |
y: 0 |
| 13 |
width: 150 |
| 14 |
text: "The quick brown fox jumps over the lazy dog. 0123456789. style: Normal" |
| 15 |
style: Text.Normal |
| 16 |
color: "black" |
| 17 |
font.family: "Arial" |
| 18 |
font.pointSize: 12 |
| 19 |
wrapMode: Text.Wrap |
| 20 |
transform: Scale{origin.x: 0 ; origin.y: 0; xScale: 0.3} |
| 21 |
smooth: smoothing |
| 22 |
} |
| 23 |
Text { |
| 24 |
id: text_0001 |
| 25 |
anchors.top: text_0000.bottom |
| 26 |
anchors.left: text_0000.left |
| 27 |
width: 150 |
| 28 |
text: "The quick brown fox jumps over the lazy dog. 0123456789. style: Normal" |
| 29 |
style: Text.Normal |
| 30 |
color: "black" |
| 31 |
font.family: "Arial" |
| 32 |
font.pointSize: 12 |
| 33 |
wrapMode: Text.Wrap |
| 34 |
transform: Scale{origin.x: 0 ; origin.y: 0; xScale: 0.4} |
| 35 |
smooth: smoothing |
| 36 |
} |
| 37 |
Text { |
| 38 |
id: text_0002 |
| 39 |
anchors.top: text_0001.bottom |
| 40 |
anchors.left: text_0001.left |
| 41 |
width: 150 |
| 42 |
text: "The quick brown fox jumps over the lazy dog. 0123456789. style: Normal" |
| 43 |
style: Text.Normal |
| 44 |
color: "black" |
| 45 |
font.family: "Arial" |
| 46 |
font.pointSize: 12 |
| 47 |
wrapMode: Text.Wrap |
| 48 |
transform: Scale{origin.x: 0 ; origin.y: 0; xScale: 0.5} |
| 49 |
smooth: smoothing |
| 50 |
} |
| 51 |
Text { |
| 52 |
id: text_0003 |
| 53 |
anchors.top: text_0002.bottom |
| 54 |
anchors.left: text_0002.left |
| 55 |
width: 150 |
| 56 |
text: "The quick brown fox jumps over the lazy dog. 0123456789. style: Normal" |
| 57 |
style: Text.Normal |
| 58 |
color: "black" |
| 59 |
font.family: "Arial" |
| 60 |
font.pointSize: 12 |
| 61 |
wrapMode: Text.Wrap |
| 62 |
transform: Scale{origin.x: 0 ; origin.y: 0; xScale: 0.6} |
| 63 |
smooth: smoothing |
| 64 |
} |
| 65 |
Text { |
| 66 |
id: text_0004 |
| 67 |
anchors.top: text_0003.bottom |
| 68 |
anchors.left: text_0003.left |
| 69 |
width: 150 |
| 70 |
text: "The quick brown fox jumps over the lazy dog. 0123456789. style: Normal" |
| 71 |
style: Text.Normal |
| 72 |
color: "black" |
| 73 |
font.family: "Arial" |
| 74 |
font.pointSize: 12 |
| 75 |
wrapMode: Text.Wrap |
| 76 |
transform: Scale{origin.x: 0 ; origin.y: 0; xScale: 0.8; } |
| 77 |
smooth: smoothing |
| 78 |
} |
| 79 |
} |