0
|
1 |
|
|
2 |
setRenderHint Antialiasing
|
|
3 |
|
|
4 |
setPen black
|
|
5 |
|
|
6 |
translate 10 10
|
|
7 |
# standard draw
|
|
8 |
begin_block text
|
|
9 |
setBrush gray
|
|
10 |
drawRect 0 0 300 300
|
|
11 |
|
|
12 |
setFont "times" 3
|
|
13 |
drawText 10 10 "Hello World...."
|
|
14 |
|
|
15 |
setFont "times" 4
|
|
16 |
drawText 10 20 "Hello World...."
|
|
17 |
|
|
18 |
setFont "times" 5
|
|
19 |
drawText 10 30 "Hello World...."
|
|
20 |
|
|
21 |
setFont "times" 6
|
|
22 |
drawText 10 40 "Hello World...."
|
|
23 |
|
|
24 |
setFont "times" 7
|
|
25 |
drawText 10 50 "Hello World...."
|
|
26 |
|
|
27 |
setFont "times" 8
|
|
28 |
drawText 10 60 "Hello World...."
|
|
29 |
|
|
30 |
setFont "times" 9
|
|
31 |
drawText 10 70 "Hello World...."
|
|
32 |
|
|
33 |
setFont "times" 10
|
|
34 |
drawText 10 80 "Hello World...."
|
|
35 |
|
|
36 |
setFont "times" 16
|
|
37 |
drawText 10 100 "Hello World...."
|
|
38 |
|
|
39 |
setFont "times" 17
|
|
40 |
drawText 10 120 "Hello World...."
|
|
41 |
|
|
42 |
setFont "times" 18
|
|
43 |
drawText 10 140 "Hello World...."
|
|
44 |
|
|
45 |
setFont "times" 20
|
|
46 |
drawText 10 160 "Hello World...."
|
|
47 |
|
|
48 |
setFont "times" 22
|
|
49 |
drawText 10 180 "Hello World...."
|
|
50 |
|
|
51 |
setFont "times" 24
|
|
52 |
drawText 10 205 "Hello World...."
|
|
53 |
|
|
54 |
setFont "times" 26
|
|
55 |
drawText 10 230 "Hello World...."
|
|
56 |
|
|
57 |
setFont "times" 32
|
|
58 |
drawText 10 260 "Hello World...."
|
|
59 |
end_block text
|
|
60 |
|
|
61 |
# Rotation w/o smooth xform
|
|
62 |
save
|
|
63 |
translate 350 0
|
|
64 |
save
|
|
65 |
setRenderHint SmoothPixmapTransform on
|
|
66 |
mapQuadToQuad 0 0 0 300 300 300 300 0 0 50 0 200 300 300 300 0
|
|
67 |
repeat_block text
|
|
68 |
restore
|
|
69 |
restore
|
|
70 |
|
|
71 |
translate 0 320
|
|
72 |
|
|
73 |
save
|
|
74 |
setRenderHint SmoothPixmapTransform on
|
|
75 |
mapQuadToQuad 0 0 0 300 300 300 300 0 0 0 100 300 200 300 300 0
|
|
76 |
repeat_block text
|
|
77 |
restore
|
|
78 |
|
|
79 |
save
|
|
80 |
translate 350 0
|
|
81 |
save
|
|
82 |
setRenderHint SmoothPixmapTransform on
|
|
83 |
mapQuadToQuad 0 0 0 300 300 300 300 0 0 0 0 300 300 250 300 50
|
|
84 |
repeat_block text
|
|
85 |
restore
|
|
86 |
restore
|
|
87 |
|
|
88 |
|
|
89 |
resetMatrix
|
|
90 |
setPen black
|
|
91 |
translate 125 20
|
|
92 |
drawText 0 0 "No transform"
|
|
93 |
translate 350 0
|
|
94 |
drawText 0 0 "Left Tilted"
|
|
95 |
resetMatrix
|
|
96 |
translate 125 350
|
|
97 |
drawText 0 0 "Bottom Tilted"
|
|
98 |
translate 350 0
|
|
99 |
drawText 0 0 "Right Tilted"
|
|
100 |
translate 120 0
|