fontloader/ts/index.ts

26 lines
472 B
TypeScript
Raw Permalink Normal View History

2023-01-05 08:54:29 +00:00
import * as plugins from './fontloader.plugins.js';
2023-01-07 07:30:54 +00:00
export type TFonts = 'Inter' | 'MaterialIcons' | 'Courier Prime';
let fontsloaderSingleton: FontLoader;
export class FontLoader {
public static ensureFonts(fontsArrayArg: TFonts) {
if (!fontsloaderSingleton) {
fontsloaderSingleton = new FontLoader();
}
}
/**
* loads the Inter font
*/
public loadInter() {
}
/**
* load material icons
*/
public loadMaterialIcon() {
}
}