Class Font
Defined in: graphics2d.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Font(cssFontDecriptor)
A font utility class.
|
Method Attributes | Method Name and Description |
---|---|
toString()
Returns the font as a browser-normalized CSS string.
|
Class Detail
Font(cssFontDecriptor)
A font utility class.
Creates a new font from a CSS font descriptor.
Author: Renaud Pawlak.
Author: Renaud Pawlak.
- Parameters:
- cssFontDecriptor
- {string|Object} the font descriptor as a CSS string or an object {style, size, family, weight}
Method Detail
{string}
toString()
Returns the font as a browser-normalized CSS string.
- Returns:
- {string}