Sets the current alignment for drawing text. Available modes are: horizontal - :left, :center, and :right vertical - :top, :bottom, :center, and :baseline An optional second parameter specifies the vertical alignment mode. :baseline is the default. The :top and :center parameters are straightforward. The :bottom parameter offsets the line based on the current text-descent. For multiple lines, the final line will be aligned to the bottom, with the previous lines appearing above it. When using text with width and height parameters, :baseline is ignored, and treated as :top. (Otherwise, text would by default draw outside the box, since :baseline is the default setting. :baseline is not a useful drawing mode for text drawn in a rectangle.) The vertical alignment is based on the value of text-ascent, which many fonts do not specify correctly. It may be necessary to use a hack and offset by a few pixels by hand so that the offset looks correct. To do this as less of a hack, use some percentage of text-ascent or text-descent so that the hack works even if you change the size of the font.
Sets the spacing between lines of text in units of pixels. This setting will be used in all subsequent calls to the text function.
Sets the way text draws to the screen - available modes are :model and :shape In the default configuration (the :model mode), it's possible to rotate, scale, and place letters in two and three dimensional space. The :shape mode draws text using the glyph outlines of individual characters rather than as textures. This mode is only supported with the PDF and OPENGL renderer settings. With the PDF renderer, you must specify the :shape text-mode before any other drawing occurs. If the outlines are not available, then :shape will be ignored and :model will be used instead. The :shape option in OPENGL mode can be combined with begin-raw to write vector-accurate text to 2D and 3D output files, for instance DXF or PDF. :shape is not currently optimized for OPENGL, so if recording shape data, use :model until you're ready to capture the geometry with begin-raw.
Sets the current font size. This size will be used in all subsequent calls to the text fn. Font size is measured in units of pixels.
Calculates and returns the width of any text string.