Font

Namespace: PP;

Inheritance hierarchy

Object

Font

Description

The Font class is used to work with font parameters.

Syntax

PP.initClass(PP.Font, PP.Object, "Font");

Properties

  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.

Methods

  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.

Properties inherited from the Object class

  Property name Brief description

Id

The Id property determines a repository object identifier.

Methods inherited from the Object class

  Method name Brief description
clone The clone method creates an object copy.
dispose The dispose method deletes the component.
getHashCode The getHashCode method returns hash code of repository object.
getId The getId method returns repository object identifier.
getSettings The getSettings method returns repository object settings.
getTypeName The getTypeName method returns the name of the object type without the namespace, to which it belongs.
isEqual The isEqual method determines whether the specified object is equal to the current repository object.
isLive The isLive method determines validity of repository object.
removeAllEvents The removeAllEvents method removes all object event handlers by the specified context.
setId The setId method determines a repository object identifier.
setSettings The setSettings method determines repository object settings.
defineProps The defineProps method creates get and set methods from name array for the specified class.
keys The keys method returns array of methods and properties names for the specified object.

PP