UNPKG

woff2-encoder

Version:

A TypeScript library for handling WOFF2 encoding using WebAssembly

8 lines (7 loc) 271 B
/** * Decompresses WOFF2 font data back to SFNT (TrueType/OpenType) font data. * * @param buffer The WOFF2 font data. * @returns A promise resolving to the SFNT font data. */ export default function decompress(buffer: ArrayBuffer | Uint8Array): Promise<Uint8Array>;