Class FontLibraryService

Hierarchy

Index

Constructors

constructor

Properties

serviceName

serviceName: string = this.constructor.name

Static hasInstance

hasInstance: boolean = false

Static isSingleton

isSingleton: boolean = true

Static serviceAfterInit

serviceAfterInit: Subject<Service> = new Subject<Service>()

lifecycle hook

Accessors

Static instance

  • get instance(): any

Methods

Protected afterInit

  • afterInit(): void
  • calls only once per application life all observers are ready to listen service's events

    Returns void

downloadFont

  • downloadFont(file: string): Promise<string>

findFamily

findStyle

  • findStyle(family: string, style: string): Promise<IFontStyle>

getManifest

Protected init

  • init(): void

lookupFontInfo

  • lookupFontInfo(fontPath: string): Promise<object>

Protected mounted

  • mounted(): void

Static createInstance

  • createInstance(ServiceClass: any): any

Static getResourceId

  • getResourceId(resource: any): string

Static setupInitFunction

  • setupInitFunction(fn: function): void

Static setupProxy

  • setupProxy(fn: function): void