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.
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.
rotate, scale, and place letters in two and three dimensional space.
must specify the `:shape` [[text-mode]] before any other drawing occurs.
`:model` will be used instead.
Sets the current font size. This size will be used in all subsequent calls to the text function. Font size is measured in units of pixels.
Sets/gets the style of the text for system fonts to :normal, :italic, or :bold. Note: this may be is overridden by CSS styling. For non-system fonts (opentype, truetype, etc.) please load styled fonts instead.
Calculates and returns the width of any text string.