#
#
RES in JavaScript
RESlite test suite
Shown is the original RES encoding.
See the source for the RESlite encoding.
Glyphs
A1
B1
A1[mirror]
A1[red]
A1[rotate=15]
A1[rotate=45]
A1[rotate=90]
A1[rotate=15,mirror]
A1[rotate=45,mirror]
A1[rotate=90,mirror]
A1[scale=0.5]
A1[xscale=0.5]
A1[yscale=0.5]
A1[scale=0.5,rotate=15]
A1[scale=0.5,rotate=15,mirror]
A1^"abc"
A1^"\\"[blue]
A1^"\""[red]
modify[above=1](A1)
modify[below=1](A1)
modify[before=1](A1)
modify[after=1](A1)
modify[above=1,omit](A1)
modify[below=1,omit](A1)
modify[before=1,omit](A1)
modify[after=1,omit](A1)
Groups
(A1*B1):(Z1*Z1*Z1)
A1-B1
stack(s,r)
stack[under](Hm,D)
stack[on,x=0.76](stack[on,x=0.7](gb,gb),gb)
A1-stack[under](Hm,D)-A1
B1-stack[on,x=0.76](stack[on,x=0.7](gb,gb),gb)-B1
empty-x:x^"a":x-empty
Text direction
[hrl](A1*B1):(Z1*Z1*Z1)
[hrl]A1[scale=0.5,rotate=15,mirror]
[vlr]A1*B1-Z1*Z1*Z1
[vrl]A1*B1-Z1*Z1*Z1
[hrl]A1^"abc"
Shading
A1[shade]
A1[shade]-B1[shade]
[vrl]A1[shade]
A1[shade]*[shade]B1[shade]:[shade]Z1[shade]*[shade]Z1[shade]*[shade]Z1[shade]
empty[te,ts,be,bs]
Font sizes
A1-B1 (with default font size 36px)
A1-B1 (with font size 20px)
A1-B1 (with font size 50px)