2011-04-27 10:05:43 +00:00
|
|
|
# Version: 1
|
|
|
|
|
|
|
|
drawText -5 5 "Text that is drawn outside the bounds..."
|
|
|
|
|
|
|
|
translate 20 20
|
|
|
|
begin_block text_drawing
|
|
|
|
save
|
|
|
|
setFont "sansserif" 10 normal
|
|
|
|
drawText 0 20 "sansserif 10pt, normal"
|
2013-03-14 23:42:15 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
setFont "sansserif" 12 normal
|
|
|
|
drawText 0 40 "sansserif 12pt, normal"
|
2013-03-14 23:42:15 +00:00
|
|
|
|
2014-01-30 10:16:12 +00:00
|
|
|
setFont "sansserif" 12 bold
|
2011-04-27 10:05:43 +00:00
|
|
|
drawText 0 60 "sansserif 12pt, bold"
|
2013-03-14 23:42:15 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
setFont "sansserif" 10 bold italic
|
|
|
|
drawText 0 80 "sansserif 10pt, bold italic"
|
2013-03-14 23:42:15 +00:00
|
|
|
|
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
translate 0 100
|
|
|
|
setPen #7fff0000
|
2013-03-14 23:42:15 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
setFont "sansserif" 10 normal
|
|
|
|
drawText 0 20 "alpha sansserif 10pt, normal"
|
2013-03-14 23:42:15 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
setFont "sansserif" 12 normal
|
|
|
|
drawText 0 40 "alpha sansserif 12pt, normal"
|
2013-03-14 23:42:15 +00:00
|
|
|
|
2014-01-30 10:16:12 +00:00
|
|
|
setFont "sansserif" 12 bold
|
2011-04-27 10:05:43 +00:00
|
|
|
drawText 0 60 "alpha sansserif 12pt, bold"
|
2013-03-14 23:42:15 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
setFont "sansserif" 10 bold italic
|
|
|
|
drawText 0 80 "alpha sansserif 10pt, bold italic"
|
2013-03-14 23:42:15 +00:00
|
|
|
|
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
translate 0 100
|
|
|
|
setPen black
|
|
|
|
save
|
|
|
|
scale 0.9 0.9
|
2013-03-14 23:42:15 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
setFont "sansserif" 10 normal
|
|
|
|
drawText 0 20 "scaled sansserif 10pt, normal"
|
2013-03-14 23:42:15 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
setFont "sansserif" 12 normal
|
|
|
|
drawText 0 40 "scaled sansserif 12pt, normal"
|
2013-03-14 23:42:15 +00:00
|
|
|
|
2014-01-30 10:16:12 +00:00
|
|
|
setFont "sansserif" 12 bold
|
2011-04-27 10:05:43 +00:00
|
|
|
drawText 0 60 "scaled sansserif 12pt, bold"
|
2013-03-14 23:42:15 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
setFont "sansserif" 10 bold italic
|
|
|
|
drawText 0 80 "scaled sansserif 10pt, bold italic"
|
|
|
|
restore
|
|
|
|
|
2013-01-23 13:55:24 +00:00
|
|
|
translate 200 200
|
|
|
|
setPen black
|
|
|
|
save
|
|
|
|
scale -1 -1
|
|
|
|
|
|
|
|
setFont "sansserif" 10 normal
|
|
|
|
drawStaticText 0 20 "flipped sansserif 10pt, normal"
|
|
|
|
|
|
|
|
setFont "sansserif" 12 normal
|
|
|
|
drawStaticText 0 40 "flipped sansserif 12pt, normal"
|
|
|
|
|
2014-01-30 10:16:12 +00:00
|
|
|
setFont "sansserif" 12 bold
|
2013-01-23 13:55:24 +00:00
|
|
|
drawStaticText 0 60 "flipped sansserif 12pt, bold"
|
|
|
|
|
|
|
|
setFont "sansserif" 10 bold italic
|
|
|
|
drawStaticText 0 80 "flipped sansserif 10pt, bold italic"
|
|
|
|
restore
|
|
|
|
|
|
|
|
translate -200 20
|
2011-04-27 10:05:43 +00:00
|
|
|
setPen black
|
|
|
|
save
|
|
|
|
translate 200 90
|
|
|
|
rotate 185
|
2013-03-14 23:42:15 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
setFont "sansserif" 10 normal
|
2016-03-31 09:23:24 +00:00
|
|
|
drawText 0 20 "rotated sansserif 10pt, normal"
|
2013-03-14 23:42:15 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
setFont "sansserif" 12 normal
|
2016-03-31 09:23:24 +00:00
|
|
|
drawText 0 40 "rotated sansserif 12pt, normal"
|
2013-03-14 23:42:15 +00:00
|
|
|
|
2014-01-30 10:16:12 +00:00
|
|
|
setFont "sansserif" 12 bold
|
2016-03-31 09:23:24 +00:00
|
|
|
drawText 0 60 "rotated sansserif 12pt, bold"
|
2013-03-14 23:42:15 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
setFont "sansserif" 10 bold italic
|
2016-03-31 09:23:24 +00:00
|
|
|
drawText 0 80 "rotated sansserif 10pt, bold italic"
|
2011-04-27 10:05:43 +00:00
|
|
|
restore
|
2013-03-14 23:42:15 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
translate 0 100
|
|
|
|
gradient_appendStop 0 red
|
|
|
|
gradient_appendStop 0.5 #00ff00
|
|
|
|
gradient_appendStop 1 blue
|
|
|
|
gradient_setLinear 0 0 200 0
|
|
|
|
setPen brush
|
2013-03-14 23:42:15 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
setFont "sansserif" 10 normal
|
|
|
|
drawText 0 0 "gradient sansserif 10pt, normal"
|
2013-03-14 23:42:15 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
setFont "sansserif" 12 normal
|
|
|
|
drawText 0 20 "gradient sansserif 12pt, normal"
|
2013-03-14 23:42:15 +00:00
|
|
|
|
2014-01-30 10:16:12 +00:00
|
|
|
setFont "sansserif" 12 bold
|
2011-04-27 10:05:43 +00:00
|
|
|
drawText 0 40 "gradient sansserif 12pt, bold"
|
2013-03-14 23:42:15 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
setFont "sansserif" 10 bold italic
|
|
|
|
drawText 0 60 "gradient sansserif 10pt, bold italic"
|
|
|
|
restore
|
|
|
|
end_block
|
|
|
|
|
|
|
|
translate 250 0
|
2013-01-23 13:55:24 +00:00
|
|
|
drawText 25 640 "clipped to rectangle"
|
2011-04-27 10:05:43 +00:00
|
|
|
save
|
|
|
|
setPen #3f000000
|
|
|
|
setBrush nobrush
|
2013-01-23 13:55:24 +00:00
|
|
|
drawRect 20 0 100 620
|
|
|
|
setClipRect 20 0 100 620
|
2011-04-27 10:05:43 +00:00
|
|
|
setPen black
|
|
|
|
repeat_block text_drawing
|
|
|
|
restore
|
|
|
|
|
|
|
|
translate 150 0
|
2013-01-23 13:55:24 +00:00
|
|
|
drawText 25 640 "clipped to path"
|
2013-03-14 23:42:15 +00:00
|
|
|
save
|
2011-04-27 10:05:43 +00:00
|
|
|
path_moveTo clip 20 0
|
|
|
|
path_cubicTo clip 0 200 40 400 20 400
|
2013-01-23 13:55:24 +00:00
|
|
|
path_lineTo clip 30 620
|
2011-04-27 10:05:43 +00:00
|
|
|
path_lineTo clip 30 0
|
|
|
|
path_lineTo clip 40 0
|
2013-01-23 13:55:24 +00:00
|
|
|
path_lineTo clip 40 620
|
|
|
|
path_lineTo clip 120 620
|
2011-04-27 10:05:43 +00:00
|
|
|
path_lineTo clip 120 0
|
|
|
|
path_lineTo clip 20 0
|
|
|
|
setPen #3f000000
|
|
|
|
setBrush nobrush
|
|
|
|
drawPath clip
|
|
|
|
setClipPath clip
|
|
|
|
setPen black
|
|
|
|
repeat_block text_drawing
|
2014-12-08 15:41:33 +00:00
|
|
|
restore
|
|
|
|
|
|
|
|
translate 150 0
|
|
|
|
save
|
|
|
|
setPen black
|
|
|
|
setFont "sansserif" 10 normal
|
|
|
|
drawText 0 20 "testing glyph cache textures"
|
|
|
|
|
|
|
|
# Important that this gradient doesn't match any earlier
|
|
|
|
# gradients, so that it's not cached from before.
|
|
|
|
gradient_clearStops
|
|
|
|
gradient_appendStop 0 blue
|
|
|
|
gradient_appendStop 0.5 #00ff00
|
|
|
|
gradient_appendStop 1 red
|
|
|
|
gradient_setLinear 0 0 100 0
|
|
|
|
setPen nopen
|
|
|
|
drawRect 0 30 100 20
|
|
|
|
|
|
|
|
setPen black
|
|
|
|
drawText 0 70 "testing glyph cache textures"
|
2015-06-25 12:37:49 +00:00
|
|
|
restore
|
|
|
|
|
|
|
|
translate 0 75
|
|
|
|
save
|
|
|
|
setPen black
|
|
|
|
setFont "sansserif" 16 normal
|
|
|
|
drawText 0 40 "e😃m😇o😍j😜i😸!"
|
|
|
|
restore
|