DrawingContext.text

Draw text at the location specified by (x,y). Use gravity to position text relative to (x, y). Specify the font appearance with the font, fontFamily, fontStretch, fontStyle, and fontWeight properties. Specify the text attributes with the textAlign, textAnchor, textAntialias, and textUndercolor properties.

To include a '%' in the text, use '%%'.

class DrawingContext
void
text
(
size_t x
,
size_t y
,
string text
)

See Also

Image.annotate for the image properties you can include in the string.

Meta