textalive-app-api - v0.5.2
    Preparing search index...

    Interface IFont

    フォント情報

    Font info

    interface IFont {
        family: string;
        size: number;
        style: string;
        clone(): IFont;
        deriveFamily(family: string): IFont;
        deriveSize(size: number): IFont;
        deriveStyle(style: string): IFont;
        eq(font: IFont): boolean;
        toString(scaleFactor?: number): string;
    }
    Index
    family: string

    フォントファミリー / Font family

    size: number

    フォントサイズ / Font size

    style: string

    フォントのスタイル / Font style

    • フォント情報を複製する

      Clone this font info

      Returns IFont

    • フォントファミリーだけ変更したフォント情報を生成する

      Derive font info with the specified font family

      Parameters

      • family: string

        フォントファミリー / Font family

      Returns IFont

    • フォントサイズだけ変更したフォント情報を生成する

      Derive font info with the specified font size

      Parameters

      • size: number

        フォントサイズ / Font size

      Returns IFont

    • フォントのスタイルだけ変更したフォント情報を生成する

      Derive font info with the specified font style

      Parameters

      • style: string

        フォントのスタイル / Font style

      Returns IFont

    • Parameters

      • font: IFont

        フォント情報 / Font

      Returns boolean

      フォント情報が一致するか否か / Whether the specified font info matches the current info

    • Parameters

      • OptionalscaleFactor: number

        Scale factor to multiply the size info [px]

      Returns string

      フォント情報のCSS用文字列表現 / CSS text that represents this font info