Adobe InDesign CS5.5 (7.5) Object Model JS: ScriptUIFont

InDesign CS5.5

Class

ScriptUIFont

 

Encapsulates the qualities of a font used to draw text into a control.

Create with the newFont() method.Used as a value of font. Passed as an argument to drawString() and measureString().

Properties

PropertyTypeAccessDescription
familyString readonlyThe font family name.
nameString readonlyThe complete font name, consisting of the family and style, if specified.
sizeNumber readonlyThe font point size.
styleObject readonly The font style. One of the constants in ScriptUIGraphics.FontStyle.
substituteString readonlyThe name of a substitution font, a fallback font to substitute for this font if the requested font family or style is not available.

Element of

ScriptUIGraphics.font

Used in:

void ScriptUIGraphics.drawString (text: String, pen: ScriptUIPen, x: Number, y: Number[, font: ScriptUIFont])

Dimension ScriptUIGraphics.measureString (text: String[, font: ScriptUIFont][, boundingWidth: Number])

Return

ScriptUIFont ScriptUI.newFont (name: String, style: String | Number, size: Number)

Jongware, 28-Apr-2012 v3.0.3iContents :: Index