Instance Properties
Name | Description | Access |
---|---|---|
allowEditableEmbedding | bool If true, the font can be embedded. | read-only |
allowOutlines | bool If true, the font can be converted to outlines. | read-only |
allowPDFEmbedding | bool If true, the font can be embedded in a PDF document. | read-only |
allowPrinting | bool If true, the can font be printed. | read-only |
eventListeners | EventListeners A collection of event listeners. | read-only |
events | Events A collection of events. | read-only |
fontFamily | string The name of the font family | read-only |
fontStyleName | string The name of the font style. | read-only |
fontStyleNameNative | string The native name of the font style. | read-only |
fontType | FontTypes The type of font. | read-only |
fullName | string The full font name. | read-only |
fullNameNative | string The full native name of the font. | read-only |
index | number The index of the Font within its containing object. | read-only |
isValid | bool Returns true if the object specifier resolves to valid objects. | read-only |
location | string The full path to the Font. | read-only |
name | string The name of the Font. | read-only |
ordering | string The ordering of a CID font. | read-only |
parent | The parent of the Font (a Document or Application). | read-only |
platformName | string The platform font name. | read-only |
postscriptName | string The PostScript name of the font. | read-only |
properties | Object A property that allows setting of several properties at the same time. | read-write |
registry | string The registry of a CID font. | read-only |
restrictedPrinting | bool If true, the font allows only restricted printing. | read-only |
status | FontStatus The status of the font. | read-only |
version | string The font version. | read-only |
writingScript | number The writing script. | read-only |
Methods
addEventListener( | eventType, handler [, captures]) |
→ EventListener |
checkOpenTypeFeature( | using) |
→ bool |
createSubsetFont( | charactersForSubset, fontDestination) |
getElements( | ) |
→ Font |
removeEventListener( | eventType, handler [, captures]) |
→ bool |
toSource( | ) |
→ string |
toSpecifier( | ) |
→ string |
-
addEventListener( eventType, handler [, captures=false])→ EventListener -
Adds an event listener.
eventType
string The event type. handler
The event handler. Can accept: File or JavaScript Function. captures
bool This parameter is obsolete. (Optional) -
checkOpenTypeFeature( using)→ bool -
Checks whether the font supports the specified OpenType feature.
using
The OpenType feature to check for, specified either as an OpenType feature or a string. Can accept: OpenTypeFeature enumerator or String. -
createSubsetFont( charactersForSubset, fontDestination) -
Create a copy of the font with just enough information to render the list of characters given.
charactersForSubset
string String with all the characters used in the resulting font. fontDestination
File File location for the new font. -
getElements( )→ Font -
Resolves the object specifier, creating an array of object references.
-
removeEventListener( eventType, handler [, captures=false])→ bool -
Removes the event listener.
eventType
string The registered event type. handler
The registered event handler. Can accept: File or JavaScript Function. captures
bool This parameter is obsolete. (Optional) -
toSource( )→ string -
Generates a string which, if executed, will return the Font.
-
toSpecifier( )→ string -
Retrieves the object specifier.