@express-document-sdk / Fonts
The Fonts class provides methods to work with fonts.
• fromPostscriptName(postscriptName): Promise<undefined | AvailableFont>
Get an AvailableFont that exactly matches the given PostScript name, if any. Only fonts that the user has permission to use for editing content are returned, so the result of this call is always safe to apply to a TextContentModel’s styles.
• postscriptName: string
The PostScript name of the font.
Promise<undefined | AvailableFont>
The Font object if found and available for editing, otherwise undefined.