| 1 |
import QtQuick 2.0 |
| 2 |
|
| 3 |
//vary font rotation 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 |
height: 50 |
| 15 |
text: "10 degrees. The quick brown fox jumps over the lazy dog. 0123456789." |
| 16 |
style: Text.Normal |
| 17 |
color: "black" |
| 18 |
font.family: "Arial" |
| 19 |
font.pointSize: 12 |
| 20 |
wrapMode: Text.NoWrap |
| 21 |
transform: Rotation{origin.x: 25 ; origin.y: 25; angle: 10} |
| 22 |
smooth: smoothing |
| 23 |
} |
| 24 |
Text { |
| 25 |
id: text_0001 |
| 26 |
anchors.top: text_0000.bottom |
| 27 |
anchors.left: text_0000.left |
| 28 |
width: 150 |
| 29 |
height: 50 |
| 30 |
text: "20 degrees. The quick brown fox jumps over the lazy dog. 0123456789. style: Normal" |
| 31 |
style: Text.Normal |
| 32 |
color: "black" |
| 33 |
font.family: "Arial" |
| 34 |
font.pointSize: 12 |
| 35 |
wrapMode: Text.NoWrap |
| 36 |
transform: Rotation{origin.x: 30 ; origin.y: 25; angle: 20} |
| 37 |
smooth: smoothing |
| 38 |
} |
| 39 |
Text { |
| 40 |
id: text_0002 |
| 41 |
anchors.top: text_0001.bottom |
| 42 |
anchors.left: text_0001.left |
| 43 |
width: 150 |
| 44 |
height: 50 |
| 45 |
text: "30 degrees. The quick brown fox jumps over the lazy dog. 0123456789. style: Normal" |
| 46 |
style: Text.Normal |
| 47 |
color: "black" |
| 48 |
font.family: "Arial" |
| 49 |
font.pointSize: 12 |
| 50 |
wrapMode: Text.NoWrap |
| 51 |
transform: Rotation{origin.x: 35 ; origin.y: 25; angle: 30} |
| 52 |
smooth: smoothing |
| 53 |
} |
| 54 |
Text { |
| 55 |
id: text_0003 |
| 56 |
anchors.top: text_0002.bottom |
| 57 |
anchors.left: text_0002.left |
| 58 |
width: 150 |
| 59 |
height: 50 |
| 60 |
text: "40 degrees. The quick brown fox jumps over the lazy dog. 0123456789. style: Normal" |
| 61 |
style: Text.Normal |
| 62 |
color: "black" |
| 63 |
font.family: "Arial" |
| 64 |
font.pointSize: 12 |
| 65 |
wrapMode: Text.NoWrap |
| 66 |
transform: Rotation{origin.x: 40 ; origin.y: 25; angle: 40} |
| 67 |
smooth: smoothing |
| 68 |
} |
| 69 |
Text { |
| 70 |
id: text_0004 |
| 71 |
anchors.top: text_0003.bottom |
| 72 |
anchors.left: text_0003.left |
| 73 |
width: 150 |
| 74 |
height: 50 |
| 75 |
text: "50 degrees. The quick brown fox jumps over the lazy dog. 0123456789. style: Normal" |
| 76 |
style: Text.Normal |
| 77 |
color: "black" |
| 78 |
font.family: "Arial" |
| 79 |
font.pointSize: 12 |
| 80 |
wrapMode: Text.NoWrap |
| 81 |
transform: Rotation{origin.x: 45 ; origin.y: 25; angle: 50} |
| 82 |
smooth: smoothing |
| 83 |
} |
| 84 |
Text { |
| 85 |
id: text_0005 |
| 86 |
anchors.top: text_0004.bottom |
| 87 |
anchors.left: text_0004.left |
| 88 |
width: 150 |
| 89 |
height: 50 |
| 90 |
text: "60 degrees. The quick brown fox jumps over the lazy dog. 0123456789. style: Normal" |
| 91 |
style: Text.Normal |
| 92 |
color: "black" |
| 93 |
font.family: "Arial" |
| 94 |
font.pointSize: 12 |
| 95 |
wrapMode: Text.NoWrap |
| 96 |
transform: Rotation{origin.x: 50 ; origin.y: 25; angle: 60} |
| 97 |
smooth: smoothing |
| 98 |
} |
| 99 |
Text { |
| 100 |
id: text_0006 |
| 101 |
anchors.top: text_0005.bottom |
| 102 |
anchors.left: text_0005.left |
| 103 |
width: 150 |
| 104 |
height: 50 |
| 105 |
text: "70 degrees. The quick brown fox jumps over the lazy dog. 0123456789. style: Normal" |
| 106 |
style: Text.Normal |
| 107 |
color: "black" |
| 108 |
font.family: "Arial" |
| 109 |
font.pointSize: 12 |
| 110 |
wrapMode: Text.NoWrap |
| 111 |
transform: Rotation{origin.x: 30 ; origin.y: 25; angle: 70} |
| 112 |
smooth: smoothing |
| 113 |
} |
| 114 |
Text { |
| 115 |
id: text_0007 |
| 116 |
anchors.top: text_0006.bottom |
| 117 |
anchors.left: text_0006.left |
| 118 |
width: 150 |
| 119 |
height: 50 |
| 120 |
text: "80 degrees. The quick brown fox jumps over the lazy dog. 0123456789. style: Normal" |
| 121 |
style: Text.Normal |
| 122 |
color: "black" |
| 123 |
font.family: "Arial" |
| 124 |
font.pointSize: 12 |
| 125 |
wrapMode: Text.NoWrap |
| 126 |
transform: Rotation{origin.x: 20 ; origin.y: 25; angle: 80} |
| 127 |
smooth: smoothing |
| 128 |
} |
| 129 |
Text { |
| 130 |
id: text_0008 |
| 131 |
anchors.top: text_0007.bottom |
| 132 |
anchors.left: text_0007.left |
| 133 |
width: 150 |
| 134 |
height: 50 |
| 135 |
text: "90 degrees. The quick brown fox jumps over the lazy dog. 0123456789. style: Normal" |
| 136 |
style: Text.Normal |
| 137 |
color: "black" |
| 138 |
font.family: "Arial" |
| 139 |
font.pointSize: 12 |
| 140 |
wrapMode: Text.NoWrap |
| 141 |
transform: Rotation{origin.x: 10 ; origin.y: 25; angle: 90} |
| 142 |
smooth: smoothing |
| 143 |
} |
| 144 |
} |