UNPKG

@awayjs/scene

Version:
39 lines 1.19 kB
import { AssetBase } from '@awayjs/core'; import { IFontTable } from './IFontTable'; import { TesselatedFontTable } from './TesselatedFontTable'; import { FontStyleName } from './FontStyleName'; /** * Font is a container for FontTables. * * * */ export declare class Font extends AssetBase { static assetType: string; private static _emptyFontTable; static get emptyFontTable(): TesselatedFontTable; private _font_styles; /** * Creates a new TesselatedFont object */ constructor(); fontName: string; regularFontStyle: IFontTable; static registerFont(any: any): void; get font_styles(): StringMap<IFontTable>; /** * */ get assetType(): string; /** * */ dispose(): void; replace_font_table(style_name: FontStyleName, table: IFontTable): void; create_font_table(style_name: FontStyleName, assetType?: string, openTypeFont?: any): IFontTable; /** *Get a font-table for a specific name, or create one if it does not exists. */ get_font_table(style_name: FontStyleName, assetType?: string, openTypeFont?: any, returnDifferentStyle?: boolean): IFontTable; } //# sourceMappingURL=Font.d.ts.map