Dart Documentationorson_chartsTextUtils

TextUtils class

Utility methods for working with text strings.

Static Methods

Dimension2D textDimensions(String text, CanvasRenderingContext2D context, Font font) #

Returns the dimensions of the specified text when rendered on the given canvas context.

Rectangle drawAlignedString(String text, CanvasRenderingContext2D context, num x, num y, TextAnchor anchor) #

Draws the specified text at the point ( x, y), aligned to the given text anchor.

void drawRotatedString(String text, CanvasRenderingContext2D context, num x, num y, TextAnchor anchor, num angle) #

Draws the specified text at the point ( x, y), aligned to the given text anchor, and rotated by angle radians.

String alignmentStr() #