Skip to content
Christopher Ross-Gill edited this page Aug 1, 2016 · 1 revision

TEXT

Draws a string of text.

Arg Type Description Values
offset [pair!] optional
size [pair!] optional
render-mode [word!] How text will be rendered vectorial - Can be transformed with stroke/dashes, filled with fill-pens, etc.
rich-text-block [block!] block containing valid richtext dialect syntax


Notes and Examples

To run some of these tests, you'll need to define the following font objects:

bold20: make system/standard/font [style: 'bold size: 20 color: white] bold36: make system/standard/font [style: 'bold size: 36 color: white]

Basic text isn't too exciting to look at.

text 10x15 [white] text 10x40 [white] pen off fill-pen red text vectorial 10x60 ["This]

text 10x90 [anti-alias]

text 10x120 [anti-alias] pen yellow fill-pen blue text 10x150 vectorial [font]


Vectorial text supports the pen, fill-pen, line-width, and line-pattern settings.

Note: Once a color in richtext dialect block is defined text color is switched under control of the richtext dialect pens.

pen yellow line-width 2 grad-pen 50x180 0 450 [255.0.0] text 0x15 vectorial [font] grad-pen off line-pattern red 5 5 text vectorial 0x60 [font]


Clone this wiki locally