File:  [parser3project] / parser3 / tests / 233.html
Revision 1.2: download - revision graph
Wed Oct 2 20:36:26 2013 UTC (12 years, 7 months ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, release_3_4_6, release_3_4_5, release_3_4_4, release_3_4_3, HEAD
test for issue #931 added

@main[]
$font[098font.gif]
$im[^image::measure[$font]]

$image[^image::create(150;48;0x00FFFF)]

$abc[ ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя0123456789-+=!\"%:,.^;<>?@()[]'&*/]

$i(0)
^image.font[$abc;$font]($i)

^image.font[$abc;$font][
	$.width(0)		^rem{ monospaced font with auto-width }
	$.space(5)		^rem{ space width }
	$.spacing(-1)
]
^image.text(1; 0)[ABC  length=[^abc.length[]]]
^image.text(1;12)[Font height=[$im.height]]
^image.text(1;24)[Char height=[^eval($im.height/^abc.length[])[%.2f]]]

^image.font[$abc;$font;
	$.space(6)		^rem{ space width }
]
$text[A Привет :*)]
^image.text(1;36)[$text]
^image.rectangle(0;36)(^image.length[$text]+1;47)(0x000000)

$response:body[^image.gif[]]

E-mail: