The FontController is responsible for all communication regarding font styles. Methods inside this controller can be called by window.SDK.font.{method-name}

Hierarchy

  • FontController

Methods

  • This method returns the default font family. Be aware that the default font family will not change during the entire lifetime of the SDK session. It is not necessary to call this more than once in an integration, this value can be safely stored during the lifetime of this SDK session.

    Returns

    a default DocumentFontFamily

    Returns Promise<EditorResponse<DocumentFontFamily>>

  • This method changes positions of font families

    Returns

    Parameters

    • order: number

      the position of the font family

    • ids: string[]

      the list of font family IDs

    Returns Promise<EditorResponse<null>>

Generated using TypeDoc