CS3 JS: ScriptUIFont

CS3 ScriptUI

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
familyStringreadonlyThe font family name.
nameStringreadonlyThe complete font name, consisting of the family and style, if specified.
sizeNumberreadonlyThe font point size.
styleObjectreadonlyThe font style. One of the constants in ScriptUIGraphics.FontStyle.
substituteStringreadonlyThe 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

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

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

Return

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

Contents :: Index