@subframe7536/fonttools
Version:
[ESM only] fonttools for nodejs or web with vite plugin, powered by pyodide
17 lines (13 loc) • 525 B
TypeScript
import { l as loadPyodide, P as PyodideInterface } from './pyodide.d-DZJVW4ke.js';
type LoadOption = Omit<Exclude<Parameters<typeof loadPyodide>[0], undefined>, 'packages'> & {
/**
* Whether to load `brotli` package to handle `woff2` format
*/
woff2?: boolean;
};
type LoadInNodeOption = Omit<LoadOption, 'indexURL'>;
/**
* Load `fonttools` in `node`
*/
declare function loadInNode(options?: LoadInNodeOption): Promise<PyodideInterface>;
export { type LoadInNodeOption, PyodideInterface, loadInNode };