Class FontPanel

Font properties toolbox panel.

Hierarchy

Constructors

  • Creates a new font properties panel

    Parameters

    • title: string

      panel title

    • language: Language

      language (localization) subsystem

    • fontFamilies: FontFamily[]

      available font families

    • Optional currentFontFamily: string

      select font family

    • Optional currentFontSize: FontSize

      current font size

    Returns FontPanel

Properties

currentFontFamily?: string

Currently selected font family.

currentFontSize: FontSize = ...

Current font size.

fontFamilies: FontFamily[] = []

Available font families.

language: Language

Language (localization) subsystem.

onFontFamilyChanged?: FontFamilyChangeHandler

Font family change event handler.

onFontSizeChanged?: FontSizeChangeHandler

Font size change event handler.

title: string

Panel title.

Methods

Generated using TypeDoc