SketchTypography mixin
- Superclass Constraints
- Mixin Applications
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createFont(
) → void -
loadFont(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
text(
String text, double x, double y) → void -
Paint the given text at the given (
x
,y
), using the current horizontal and vertical text alignment and text size. -
textAlign(
TextAlignHorizontal horizontalAlignment, [TextAlignVertical? verticalAlignment]) → void - Set the horizontal and vertical text alignment for text that's painted with the text() method.
-
textAscent(
) → double - Returns the ascent length for the current font, at the current font size.
-
textDescent(
) → double - Returns the descent length for the current font, at the current font size.
-
textFont(
String fontName) → void -
Set the font used to render text by providing a
fontName
. -
textLeading(
double leading) → void - Sets the leading for text that is painted with the text() method.
-
textMode(
) → void -
textSize(
double fontSize) → void - Sets the size of the text that is painted with the text() method.
-
textWidth(
String text) → double -
Calculates and returns the width of the given
text
, sized and spaced based on the current text configuration. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited