Class StiFontCollection

Hierarchy

  • StiFontCollection

Index

Methods

Static addFont

  • addFont(font: any, fontName?: string, binFont?: any, filePath?: string, fontStyle?: FontStyle, store?: boolean): void
  • Parameters

    • font: any
    • Default value fontName: string = null
    • Default value binFont: any = null
    • Default value filePath: string = null
    • Default value fontStyle: FontStyle = null
    • Default value store: boolean = true

    Returns void

Static addFontBytes

  • addFontBytes(data: any, fontName?: string, fontStyle?: FontStyle, store?: boolean): void
  • Parameters

    • data: any
    • Default value fontName: string = null
    • Default value fontStyle: FontStyle = null
    • Default value store: boolean = true

    Returns void

Static addFontFile

  • addFontFile(filePath: string, fontName?: string, fontStyle?: FontStyle, store?: boolean): void
  • Parameters

    • filePath: string
    • Default value fontName: string = null
    • Default value fontStyle: FontStyle = null
    • Default value store: boolean = true

    Returns void

Static addFontFileAsync

  • addFontFileAsync(callback: function, filePath: string, fontName?: string, fontStyle?: FontStyle, store?: boolean): void
  • Parameters

    • callback: function
        • (): object
        • Returns object

    • filePath: string
    • Default value fontName: string = null
    • Default value fontStyle: FontStyle = null
    • Default value store: boolean = true

    Returns void

Static addOpentypeFont

  • addOpentypeFont(font: any, fontName?: string, binFont?: any, filePath?: string, fontStyle?: FontStyle, store?: boolean): void
  • deprecated

    Use addFont

    Parameters

    • font: any
    • Default value fontName: string = null
    • Default value binFont: any = null
    • Default value filePath: string = null
    • Default value fontStyle: FontStyle = null
    • Default value store: boolean = true

    Returns void

Static addOpentypeFontFile

  • addOpentypeFontFile(filePath: string, fontName?: string, fontStyle?: FontStyle, store?: boolean): void
  • deprecated

    Use addFontFile

    Parameters

    • filePath: string
    • Default value fontName: string = null
    • Default value fontStyle: FontStyle = null
    • Default value store: boolean = true

    Returns void

Static addOpentypeFontFileAsync

  • addOpentypeFontFileAsync(callback: function, filePath: string, fontName?: string, fontStyle?: FontStyle, store?: boolean): void
  • deprecated

    Use addFontFileAsync

    Parameters

    • callback: function
        • (): object
        • Returns object

    • filePath: string
    • Default value fontName: string = null
    • Default value fontStyle: FontStyle = null
    • Default value store: boolean = true

    Returns void

Static getBinFont

  • getBinFont(fontName: string, fontStyle?: FontStyle): any
  • Parameters

    • fontName: string
    • Default value fontStyle: FontStyle = undefined

    Returns any

Static getBinFonts

  • getBinFonts(): string[]
  • Returns string[]

Static getFontFamilies

Static isCustomFont

  • isCustomFont(fontName: string): boolean
  • Parameters

    • fontName: string

    Returns boolean

Static setFontsFolder

  • setFontsFolder(folderPatch: string): void
  • Parameters

    • folderPatch: string

    Returns void

Static setOpentypeFontsFolder

  • setOpentypeFontsFolder(folderPatch: string): void
  • deprecated

    Use setFontsFolder

    Parameters

    • folderPatch: string

    Returns void

Generated using TypeDoc