new Typeface(Font, Size, Color) → {Typeface}
The MC.Typeface Object provides a simple container for recording text formats
This:
- {Typeface}
Parameters:
Name | Type | Description |
---|---|---|
Font |
String | The desired HTML5 font |
Size |
Number | The font size |
Color |
String | MC.Color | The text colour. Either an HTML5 color string or MC.Color can be used |
Returns:
a new Typeface object
- Type
- Typeface
Methods
clone() → {Typeface}
Clones the calling Typeface and returns a new one, useful for rapid prototyping
Returns:
a new Typeface object (with the same values)
- Type
- Typeface
log()
Returns a string concatentation of the size+"Px "+font
Used internally by the MC.draw.text() method