JavaScript Scripting Reference
TextFonts
The collection of fonts available on your computer.
Note:
The
use the property name
object. The following example uses the length property to determine, and then display, the number
of
TextFonts
●
●
See
Properties
Property
length
parent
typename
Methods
Method
index
(itemKey)
getByName
(name)
class corresponds to the
TextFonts
fonts
installed on the machine.
Correct:
alert(app.fonts.length)
Incorrect:
alert(app.TextFonts.length)
, specifically the
Application
Value Type
number (long)
object
(Application)
string
Parameter Type
number
string
Adobe Photoshop CS3
property of the
fonts
, rather than the class name
property, for more information.
fonts
What it is
Read-only. The number of elements in the
Read-only. The object's container.
Read-only. The class name of the referenced
Returns
What it does
Gets an element from the
TextFont
collection.
Gets the first element in the
TextFont
collection with the provided name.
JavaScript Object Reference
object. In a script, you
TextFonts
, to refer to a
TextFonts
TextFonts
TextFonts
TextFonts
TextFonts
178
TextFonts
collection.
object.