BPS Script API  2.24.4
bps::Font Class Reference

A wrapper for QFont. More...

Public Member Functions

 Font ()
 Default constructor.
 
String toString () const
 

Properties

Boolean bold
 Font is bold. More...
 
String family
 The font family name. More...
 
Boolean italic
 Font is italic. More...
 
Boolean kerning
 Font has kerning enabled. More...
 
Number pointSize
 The font point size. More...
 
Boolean strikeOut
 Font is striked out. More...
 
Boolean underline
 Font is underlined. More...
 

Detailed Description

A wrapper for QFont.

Example use within a report:

var f = section.item('info').font;
f.family = 'Courier New';
f.pointSize = 40;
f.bold = true;
section.item('info').font = f;

Member Function Documentation

◆ toString()

String bps::Font::toString ( ) const
Returns
Returns "Font(family,pointSize)"

Property Documentation

◆ bold

Boolean bps::Font::bold
readwrite

Font is bold.

 

◆ family

String bps::Font::family
readwrite

The font family name.

 

◆ italic

Boolean bps::Font::italic
readwrite

Font is italic.

 

◆ kerning

Boolean bps::Font::kerning
readwrite

Font has kerning enabled.

 

◆ pointSize

Number bps::Font::pointSize
readwrite

The font point size.

 

◆ strikeOut

Boolean bps::Font::strikeOut
readwrite

Font is striked out.

 

◆ underline

Boolean bps::Font::underline
readwrite

Font is underlined.

 


The documentation for this class was generated from the following file: