Table of Contents

Font

Script wrapper for QFont.

More...

Inherits :

Properties

Constructors

DAZ Script
Font ()
Font ( Font font )
Font ( String familyName )

Methods

DAZ Script
RectboundingRect ( Rect maxRect, String text, Number flags=0 )
StringelidedText ( String text, DzWidget::TextElideMode mode, Number width, Number flags=0 )
Arrayfamilies ()
ArraypointSizes ( String family, String style )
Sizesize ( String text, Number flags=0 )
Arraystyles ( String family )

Detailed Description

This is the script counterpart to the QFont type used in the C++ SDK.

Attention:

Properties


Boolean : bold

Holds whether or not the Font is bold.


String : family

Holds the family name of the Font.


Boolean : italic

Holds whether or not the Font is italicized.


Number : pixelSize

The pixel size of the font (the device dependent size of the font)


Number : pointSize

The point size of the font (the device independent size of the font)


Boolean : strikeout

Holds whether or not the Font is stricken.


Boolean : underline

Holds whether or not the Font is underlined.

Constructors


Font()

Default Constructor.


Font( Font font )

Copy Constructor.

Parameter(s):


Font( String familyName )

Constructs a new font of the given family.

Parameter(s):

Methods


Rect : boundingRect( Rect maxRect, String text, Number flags=0 )

Parameter(s):

Return Value:

Since:


String : elidedText( String text, DzWidget::TextElideMode mode, Number width, Number flags=0 )

Parameter(s):

Return Value:

Since:


Array : families()

Return Value:

Since:


Array : pointSizes( String family, String style )

Parameter(s):

Return Value:

Since:


Size : size( String text, Number flags=0 )

Parameter(s):

Return Value:

Since:


Array : styles( String family )

Parameter(s):

Return Value:

Since: