Edit in GitHubLog an issue

@express-document-sdk / Fonts

Class: Fonts

The Fonts class provides methods to work with fonts.

Methods

fromPostscriptName()

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.

Parameters

postscriptName: string

The PostScript name of the font.

Returns

Promise<undefined | AvailableFont>

The Font object if found and available for editing, otherwise undefined.

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.