Namespace: PP;
Font
The Font class is used to work with font parameters.
PP.initClass(PP.Font, PP.Object, "Font");
Property name | Brief description | |
Color | The Color property sets the font color. | |
FontFamily | The FontFamily property sets the font name. | |
IsBold | The IsBold property determines whether the bold type text is used. | |
IsCapitalized | The IsCapitalized property determines whether the characters in the text are capital. | |
IsInferior | The IsInferior property determines whether the text is subscript. | |
IsItalic | The IsItalic property determines, whether the italic font is used. | |
IsLowerCapitalized | The IsLowerCapitalized property determines whether the small capital letters are used. | |
IsStriken | The IsStriken property determines whether the text is strikethrough. | |
IsSuperior | The IsSuperior property determines whether the text is superior. | |
IsUnderline | The IsUnderline property determines whether the text is underlined. | |
Size | The Size property sets the font size. | |
UseAutoColor | The UseAutoColor property determines whether the default color is used. |
Method name | Brief description | |
toCanvasFormat | The toCanvasFormat method returns a string with font settings for the canvas element. | |
toCSSFormat | The toCSSFormat method returns a string in the css format with font settings. | |
toRaphaelFormat | The toRaphaelFormat method determines font settings for the specified Raphael object. | |
toSVGFormat | The toSVGFormat method determines font settings for the specified SVG object. |
Property name | Brief description | |
Data | The Data property associates a random object with this component. | |
Id | The Id property sets component identifier. | |
Settings | The Settings property sets the component parameters. |
Method name | Brief description | |
clone | The clone method creates a copy of object. It is not implemented in PP.Ui.Control. | |
dispose | The dispose method deletes the component. | |
getTypeName | The getTypeName method returns the name of the object type without the namespace, to which it belongs. |