# #
 RES in JavaScript

RESlite test suite

Shown is the original RES encoding. See the source for the RESlite encoding.

Glyphs

A1 $ hlr 1000 g 0 696 c 1 57344 0 0 15 1000 1000 348 500 0 0 1000 1000 i e

B1 $ hlr 1000 g 0 565 c 1 57424 0 0 15 1000 1000 283 500 0 0 1000 1000 i e

A1[mirror] $ hlr 1000 g 0 696 c 1 57344 1 0 15 1000 1000 348 511 0 0 1000 1000 i e

A1[red] $ hlr 1000 g 0 696 c 1 57344 0 0 9 1000 1000 348 511 0 0 1000 1000 i e

A1[rotate=15] $ hlr 1000 g 0 761 c 1 57344 0 15 15 1000 1000 380 500 0 0 1000 1000 i e

A1[rotate=45] $ hlr 1000 g 0 1000 c 1 57344 0 45 15 1000 1000 500 511 0 0 1000 1000 i e

A1[rotate=90] $ hlr 1000 g 0 978 c 1 57344 0 90 15 1000 1000 489 500 0 0 1000 1000 i e

A1[rotate=15,mirror] $ hlr 1000 g 0 717 c 1 57344 1 15 15 939 939 359 500 0 0 1000 1000 i e

A1[rotate=45,mirror] $ hlr 1000 g 0 978 c 1 57344 1 45 15 1000 1000 489 500 0 0 1000 1000 i e

A1[rotate=90,mirror] $ hlr 1000 g 0 978 c 1 57344 1 90 15 1000 1000 489 500 0 0 1000 1000 i e

A1[scale=0.5] $ hlr 1000 g 0 348 c 1 57344 0 0 15 500 500 174 511 0 0 1000 1000 i e

A1[xscale=0.5] $ hlr 1000 g 0 348 c 1 57344 0 0 15 500 1000 174 511 0 0 1000 1000 i e

A1[yscale=0.5] $ hlr 1000 g 0 696 c 1 57344 0 0 15 1000 500 348 511 0 0 1000 1000 i e

A1[scale=0.5,rotate=15] $ hlr 1000 g 0 413 c 1 57344 0 15 15 500 500 207 500 0 0 1000 1000 i e

A1[scale=0.5,rotate=15,mirror] $ hlr 1000 g 0 413 c 1 57344 1 15 15 500 500 207 511 0 0 1000 1000 i e

A1^"abc" $ hlr 1000 g 0 696 c 1 57344 0 0 15 1000 1000 348 511 0 0 1000 1000 n "abc" 3 15 261 337 -130 i e

A1^"\\"[blue] $ hlr 1000 g 0 696 c 1 57344 0 0 15 1000 1000 348 511 0 0 1000 1000 n "\\" 3 11 261 337 -130 i e

A1^"\""[red] $ hlr 1000 g 0 696 c 1 57344 0 0 15 1000 1000 348 511 0 0 1000 1000 n "\"" 3 9 261 337 -54 i e

modify[above=1](A1) $ hlr 1000 g 0 696 c 1 57344 0 0 15 1000 1000 348 250 0 0 1000 1000 i e

modify[below=1](A1) $ hlr 1000 g 0 696 c 1 57344 0 0 15 1000 1000 348 750 0 0 1000 1000 i e

modify[before=1](A1) $ hlr 1000 g 0 348 c 1 57344 0 0 15 1000 1000 0 511 0 0 1000 1000 i e

modify[after=1](A1) $ hlr 1000 g 0 348 c 1 57344 0 0 15 1000 1000 348 511 0 0 1000 1000 i e

modify[above=1,omit](A1) $ hlr 1000 g 0 696 c 1 57344 0 0 15 1000 1000 348 250 0 511 1000 489 i e

modify[below=1,omit](A1) $ hlr 1000 g 0 696 c 1 57344 0 0 15 1000 1000 348 750 0 0 1000 511 i e

modify[before=1,omit](A1) $ hlr 1000 g 0 348 c 1 57344 0 0 15 1000 1000 0 511 500 0 500 1000 i e

modify[after=1,omit](A1) $ hlr 1000 g 0 348 c 1 57344 0 0 15 1000 1000 348 511 0 0 500 1000 i e

Groups

(A1*B1):(Z1*Z1*Z1) $ hlr 1000 g 0 804 c 1 57344 0 0 15 556 556 196 272 0 0 1000 1000 c 1 57424 0 0 15 556 556 641 272 0 0 1000 1000 c 1 58340 0 0 15 807 807 33 837 0 0 1000 1000 c 1 58340 0 0 15 807 807 402 837 0 0 1000 1000 c 1 58340 0 0 15 807 807 772 837 0 0 1000 1000 i e

A1-B1 $ hlr 1000 g 0 696 c 1 57344 0 0 15 1000 1000 348 511 0 0 1000 1000 i g 848 565 c 1 57424 0 0 15 1000 1000 283 511 0 0 1000 1000 i e

stack(s,r) $ hlr 1000 g 0 978 c 1 58100 0 0 15 1000 1000 478 511 0 0 1000 1000 c 1 57483 0 0 15 1000 1000 489 500 0 0 1000 1000 i e

stack[under](Hm,D) $ hlr 1000 g 0 978 ( c 1 57747 0 0 15 1000 1000 489 511 0 0 1000 1000 o c 1 58203 0 0 15 1000 1000 489 511 0 0 1000 1000 ) i e

stack[on,x=0.76](stack[on,x=0.7](gb,gb),gb) $ hlr 1000 g 0 1391 ( ( c 1 57708 0 0 15 1000 1000 489 511 0 0 1000 1000 o c 1 57708 0 0 15 1000 1000 685 511 0 0 1000 1000 ) o c 1 57708 0 0 15 1000 1000 902 511 0 0 1000 1000 ) i e

A1-stack[under](Hm,D)-A1 $ hlr 1000 g 0 696 c 1 57344 0 0 15 1000 1000 348 511 0 0 1000 1000 i g 848 978 ( c 1 57747 0 0 15 1000 1000 489 511 0 0 1000 1000 o c 1 58203 0 0 15 1000 1000 489 511 0 0 1000 1000 ) i g 1130 696 c 1 57344 0 0 15 1000 1000 348 511 0 0 1000 1000 i e

B1-stack[on,x=0.76](stack[on,x=0.7](gb,gb),gb)-B1 $ hlr 1000 g 0 565 c 1 57424 0 0 15 1000 1000 283 511 0 0 1000 1000 i g 717 1391 ( ( c 1 57708 0 0 15 1000 1000 489 511 0 0 1000 1000 o c 1 57708 0 0 15 1000 1000 685 511 0 0 1000 1000 ) o c 1 57708 0 0 15 1000 1000 902 511 0 0 1000 1000 ) i g 1543 565 c 1 57424 0 0 15 1000 1000 283 511 0 0 1000 1000 i e

empty-x:x^"a":x-empty $ hlr 1000 g 0 1000 i g 1152 261 c 1 58381 0 0 15 512 512 130 130 0 0 1000 1000 c 1 58381 0 0 15 512 512 130 500 0 0 1000 1000 c 1 58381 0 0 15 512 512 130 870 0 0 1000 1000 n "a" 3 15 261 380 435 i g 413 1000 i e

Text direction

[hrl](A1*B1):(Z1*Z1*Z1) $ hrl 1000 g 0 804 c 1 57344 0 0 15 556 556 196 272 0 0 1000 1000 c 1 57424 0 0 15 556 556 641 272 0 0 1000 1000 c 1 58340 0 0 15 807 807 33 837 0 0 1000 1000 c 1 58340 0 0 15 807 807 402 837 0 0 1000 1000 c 1 58340 0 0 15 807 807 772 837 0 0 1000 1000 i e

[hrl]A1[scale=0.5,rotate=15,mirror] $ hrl 1000 g 0 413 c 1 57344 1 15 15 500 500 207 511 0 0 1000 1000 i e

[vlr]A1*B1-Z1*Z1*Z1 $ vlr 1000 g 0 696 c 1 57344 0 0 15 708 708 250 348 0 0 1000 1000 c 1 57424 0 0 15 708 708 804 348 0 0 1000 1000 i g 848 391 c 1 58340 0 0 15 1000 1000 33 196 0 0 1000 1000 c 1 58340 0 0 15 1000 1000 489 196 0 0 1000 1000 c 1 58340 0 0 15 1000 1000 967 196 0 0 1000 1000 i e

[vrl]A1*B1-Z1*Z1*Z1 $ vrl 1000 g 0 696 c 1 57344 0 0 15 708 708 250 348 0 0 1000 1000 c 1 57424 0 0 15 708 708 804 348 0 0 1000 1000 i g 848 391 c 1 58340 0 0 15 1000 1000 33 196 0 0 1000 1000 c 1 58340 0 0 15 1000 1000 489 196 0 0 1000 1000 c 1 58340 0 0 15 1000 1000 967 196 0 0 1000 1000 i e

[hrl]A1^"abc" $ hrl 1000 g 0 696 c 1 57344 0 0 15 1000 1000 348 511 0 0 1000 1000 n "abc" 3 15 261 337 -130 i e

Shading

A1[shade] $ hlr 1000 g 0 696 c 1 57344 0 0 15 1000 1000 348 511 0 0 1000 1000 s 348 500 696 1000 i e

A1[shade]-B1[shade] $ hlr 1000 g 0 696 c 1 57344 0 0 15 1000 1000 348 511 0 0 1000 1000 s 348 500 696 1000 i g 848 565 c 1 57424 0 0 15 1000 1000 283 511 0 0 1000 1000 s 283 500 565 1000 i e

[vrl]A1[shade] $ vrl 1000 g 0 978 c 1 57344 0 0 15 1000 1000 500 489 0 0 1000 1000 s 500 489 1000 978 i e

A1[shade]*[shade]B1[shade]:[shade]Z1[shade]*[shade]Z1[shade]*[shade]Z1[shade] $ hlr 1000 g 0 804 c 1 57344 0 0 15 556 556 196 272 0 0 1000 1000 c 1 57424 0 0 15 556 556 641 272 0 0 1000 1000 c 1 58340 0 0 15 807 807 33 837 0 0 1000 1000 c 1 58340 0 0 15 807 807 402 837 0 0 1000 1000 c 1 58340 0 0 15 807 807 772 837 0 0 1000 1000 s 196 272 391 543 s 641 272 326 543 s 435 272 87 543 s 33 837 65 326 s 402 837 65 326 s 772 837 65 326 s 217 837 304 326 s 587 837 304 326 s 402 609 804 130 i e

empty[te,ts,be,bs] $ hlr 1000 g 0 1000 s 750 250 500 500 s 250 250 500 500 s 750 750 500 500 s 250 750 500 500 i e

Font sizes

A1-B1 (with default font size 36px) $ hlr 1000 g 0 696 c 1 57344 0 0 15 1000 1000 348 511 0 0 1000 1000 i g 848 565 c 1 57424 0 0 15 1000 1000 283 511 0 0 1000 1000 i e

A1-B1 (with font size 20px) $ hlr 1000 g 0 696 c 1 57344 0 0 15 1000 1000 348 511 0 0 1000 1000 i g 848 565 c 1 57424 0 0 15 1000 1000 283 511 0 0 1000 1000 i e

A1-B1 (with font size 50px) $ hlr 1000 g 0 696 c 1 57344 0 0 15 1000 1000 348 511 0 0 1000 1000 i g 848 565 c 1 57424 0 0 15 1000 1000 283 511 0 0 1000 1000 i e