Font

A font.

Properties

Property Type Access Description
allowEditableEmbedding bool readonly If true, the font can be embedded.
allowOutlines bool readonly If true, the font can be converted to outlines.
allowPDFEmbedding bool readonly If true, the font can be embedded in a PDF document.
allowPrinting bool readonly If true, the can font be printed.
fontFamily string readonly The name of the font family
fontStyleName string readonly The name of the font style.
fontStyleNameNative string readonly The native name of the font style.
fontType FontTypes
:
TYPE_1
TRUETYPE
CID
ATC
BITMAP
OCF
OPENTYPE_CFF
OPENTYPE_CID
OPENTYPE_TT
UNKNOWN
readonly The type of font.
fullName string readonly The full font name.
fullNameNative string readonly The full native name of the font.
index number readonly The index of the Font within its containing object.
location string readonly The full path to the Font.
name string readonly The name of the Font.
ordering string readonly The ordering of a CID font.
parent any readonly The parent of the Font (a Document or Application).
platformName string readonly The platform font name.
postscriptName string readonly The PostScript name of the font.
properties Object r/w A property that allows setting of several properties at the same time.
registry string readonly The registry of a CID font.
restrictedPrinting bool readonly If true, the font allows only restricted printing.
status FontStatus
:
INSTALLED
NOT_AVAILABLE
FAUXED
SUBSTITUTED
UNKNOWN
readonly The status of the font.
version string readonly The font version.
writingScript number readonly The writing script.

Methods

bool checkOpenTypeFeature (using:
any)
Checks whether the font supports the specified OpenType feature.

Parameter Type Description
using OpenTypeFeature
String
The OpenType feature to check for, specified either as an OpenType feature or a string. Can accept: OpenTypeFeature enumerator or String.

Array of FontgetElements ()
Resolves the object specifier, creating an array of object references.

string toSource ()
Generates a string which, if executed, will return the Font.

string toSpecifier ()
Retrieves the object specifier.

Used in:

Fonts.previousItem (

obj:
Font )

Fonts.nextItem (

obj:
Font )

Returned by:

Array of Font Font .getElements (

)

Font Fonts.anyItem (

)

Array of Font Fonts.everyItem (

)

Font Fonts.firstItem (

)

Font Fonts.item (
index:
any
)

Font Fonts.itemByName (
name:
string
)

Array of Font Fonts.itemByRange (
from:
any, to:
any
)

Font Fonts.lastItem (

)

Font Fonts.middleItem (

)

Font Fonts.nextItem (
obj:
Font
)

Font Fonts.previousItem (
obj:
Font
)

Leave a Comment

Previous post:

Next post: