Script Reference : Font

The Font class describes logical font.

Data Members
Name Type Description
Name string String that specifies the typeface name of the font
Weight int Specifies the weight of the font in the range 0 through 1000. For example, 400 is normal and 700 is bold. If this value is zero, a default weight is used.
Italic bool Specifies an italic font if set to TRUE.
Underline bool Specifies an underlined font if set to TRUE.
Height float Specifies the height, in logical units, of the font's character cell or character.
Strikeout bool Specifies a strikeout font if set to TRUE.

 

Constructors
Name Description
Font::Font() Creates a Font object and initializes all data to defaults. This is the default constructor.
Font::Font(string facename) Creates a Font object object using string parameter as font face name.

 

Methods
Name Return Type Description