@wordpress/global-styles-ui
Version:
Global Styles UI components for WordPress.
12 lines (11 loc) • 460 B
TypeScript
// Type declarations for lib-font.browser.js
export class Font {
constructor( name: string, options?: any );
opentype: any;
tables: any;
onload?: ( event: { detail: { font: any } } ) => void;
fromDataBuffer( buffer: ArrayBuffer | any, filename: string ): void;
static create( name: string, options?: any ): Font;
static load( url: string, options?: any ): Promise< Font >;
static loadFromArrayBuffer( arrayBuffer: ArrayBuffer, options?: any ): Font;
}