Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IFont

フォント情報

Font info

Hierarchy

  • IFont

Index

Properties

Readonly family

family: string

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

Readonly size

size: number

フォントサイズ / Font size

Readonly style

style: string

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

Methods

clone

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

    Clone this font info

    Returns IFont

deriveFamily

  • deriveFamily(family: string): IFont
  • フォントファミリーだけ変更したフォント情報を生成する

    Derive font info with the specified font family

    Parameters

    • family: string

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

    Returns IFont

deriveSize

  • deriveSize(size: number): IFont
  • フォントサイズだけ変更したフォント情報を生成する

    Derive font info with the specified font size

    Parameters

    • size: number

      フォントサイズ / Font size

    Returns IFont

deriveStyle

  • deriveStyle(style: string): IFont
  • フォントのスタイルだけ変更したフォント情報を生成する

    Derive font info with the specified font style

    Parameters

    • style: string

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

    Returns IFont

eq

  • Parameters

    • font: IFont

      フォント情報 / Font

    Returns boolean

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

toString

  • toString(scaleFactor?: number): string
  • Parameters

    • Optional scaleFactor: number

      Scale factor to multiply the size info [px]

    Returns string

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

Generated using TypeDoc