Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IFontLoader

Hierarchy

  • IFontLoader

Index

Properties

Readonly failed

failed: FontInfo[]

読み込みに失敗したフォントの一覧 / List of fonts failed to load

Readonly loaded

loaded: FontInfo[]

読み込まれたフォントの一覧 / List of fonts succeeded to load

Methods

isLoading

  • isLoading(): boolean
  • 読み込みプロセスの有無 / Whether fonts are currently loaded or not

    Returns boolean

listAvailableFonts

  • listAvailableFonts(): Promise<FontInfo[]>
  • 利用可能なフォントの一覧を取得する

    List up all available fonts

    Returns Promise<FontInfo[]>

    フォントの一覧 / List of fonts

listFontFamiliesInVideo

  • listFontFamiliesInVideo(json: VideoData): string[]
  • 指定した動画データ中で利用されているフォントの一覧を取得する

    List up required fonts to render the specified video data

    Parameters

    • json: VideoData

      動画データ / Video data

    Returns string[]

    フォント名の一覧 / List of font family names

load

  • フォントを読み込む

    Load fonts

    Parameters

    • fonts: (string | FontInfo)[]

      フォント名の一覧 / List of font family names

    Returns Promise<FontInfo[]>

    読み込めたフォントの一覧 / List of fonts suceeded to load

loadAll

  • 利用可能なすべてのフォントを読み込む

    Load all available fonts

    Returns Promise<FontInfo[]>

    読み込めたフォントの一覧 / List of fonts suceeded to load

loadForVideo

  • 指定した動画データ中で利用されているフォントを読み込む

    Load all required fonts to render the specified video data

    Parameters

    • json: VideoData

      動画データ / Video data

    Returns Promise<FontInfo[]>

    読み込まれたフォントの一覧 / List of loaded fonts

Generated using TypeDoc