gameforge - v0.1.12
    Preparing search index...

    Interface Config

    interface Config {
        classes?: boolean;
        context?: Window;
        custom?: Custom;
        events?: boolean;
        fontdeck?: Fontdeck;
        google?: Google;
        monotype?: Monotype;
        timeout?: number;
        typekit?: Typekit;
        active?(): void;
        fontactive?(familyName: string, fvd: string): void;
        fontinactive?(familyName: string, fvd: string): void;
        fontloading?(familyName: string, fvd: string): void;
        inactive?(): void;
        loading?(): void;
    }
    Index

    Properties

    classes?: boolean

    Setting this to false will disable html classes (defaults to true)

    context?: Window

    Child window or iframe to manage fonts for

    custom?: Custom
    events?: boolean

    Settings this to false will disable callbacks/events (defaults to true)

    fontdeck?: Fontdeck
    google?: Google
    monotype?: Monotype
    timeout?: number

    Time (in ms) until the fontinactive callback will be triggered (defaults to 5000)

    typekit?: Typekit

    Methods

    • This event is triggered when the fonts have rendered.

      Returns void

    • This event is triggered once for each font that renders.

      Parameters

      • familyName: string
      • fvd: string

      Returns void

    • This event is triggered if the font can't be loaded.

      Parameters

      • familyName: string
      • fvd: string

      Returns void

    • This event is triggered once for each font that's loaded.

      Parameters

      • familyName: string
      • fvd: string

      Returns void

    • This event is triggered when the browser does not support linked fonts or if none of the fonts could be loaded.

      Returns void

    • This event is triggered when all fonts have been requested.

      Returns void