Specifications

Table Of Contents
Adobe Photoshop CS6
JavaScript Scripting Reference JavaScript Object Reference 178
TextFonts
The collection of fonts available on your computer. Fonts are represented by TextFont objects. Access this
object in the Application
.fonts collection property. For example, this displays the number of available
fonts:
alert(app.fonts.length);
Properties
Methods
Property Value type What it is
length
number
Read-only. The number of elements in the collection.
parent
Application
Read-only. The containing application.
typename
string
Read-only. The class name of the referenced TextFonts object.
Method Parameter type Returns What it does
getByName
(name)
string
TextFont
Gets the first element in the TextFonts
collection with the provided name.