DAZ Script | |
---|---|
Rect | boundingRect ( Rect maxRect, String text, Number flags=0 ) |
String | elidedText ( String text, DzWidget::TextElideMode mode, Number width, Number flags=0 ) |
Array | families () |
Array | pointSizes ( String family, String style ) |
Size | size ( String text, Number flags=0 ) |
Array | styles ( String family ) |
This is the script counterpart to the QFont type used in the C++ SDK.
Attention:
Holds whether or not the Font is bold.
Holds the family name of the Font.
Holds whether or not the Font is italicized.
The pixel size of the font (the device dependent size of the font)
The point size of the font (the device independent size of the font)
Holds whether or not the Font is stricken.
Holds whether or not the Font is underlined.
Font()
Default Constructor.
Font( Font font )
Copy Constructor.
Parameter(s):
Constructs a new font of the given family.
Parameter(s):
Rect : boundingRect( Rect maxRect, String text, Number flags=0 )
Parameter(s):
Return Value:
text
, which is the set of pixels the text would cover if drawn at (0, 0), constrained to maxRect
.Since:
String : elidedText( String text, DzWidget::TextElideMode mode, Number width, Number flags=0 )
Parameter(s):
text
with.Return Value:
text
is wider than width
, an elided version of text
, otherwise the original string.Since:
Return Value:
Since:
Array : pointSizes( String family, String style )
Parameter(s):
Return Value:
family
and style
.Since:
Size : size( String text, Number flags=0 )
Parameter(s):
Return Value:
text
.Since:
Array : styles( String family )
Parameter(s):
Return Value:
family
(if any), otherwise an empty list.Since: