Class Index | File Index

Classes


Class Font


Defined in: graphics2d.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Font(cssFontDecriptor)
A font utility class.
Method Summary
Method Attributes Method Name and Description
 
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.
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}

© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Aug 21 2024 17:43:23 GMT+0200 (CEST)