FontSpec
Last updated
Last updated
The FontSpec class represents a specification for a font. The constructor is accessible from scripts.
init( family, style, size )
Creates a new FontSpec with the given family, style and size.
Indicates a style of plain.
Indicates a style of bold. This can be or’ed with
ITALIC
.
Indicates a style of italic. This can be or’ed with
BOLD
Indicates the size should be determined algorithmically. Only used for the
entityTitleFont
field of Document.
Field
Type
Description
family
string
Read only. The font family; e.g., Arial, New Times Roman, SansSerif, etc.
style
Font Style Type
Read Only. The derived style of the font, plain, bold, italic or bold/italic. Note that fonts like Arial Bold that have an inherent style have this field set to plain.
size
number or AUTOSIZE
Read Only. The point size of the font. Can be set to AUTOSIZE when the entityTitleFont
field of the Document is involved.
ascent
number
descent
number
uppercaseHeight
number