UNPKG

@sctg/fontminify

Version:

Minify font seamlessly, font subsetter, webfont (eot, woff, svg) converter.

48 lines (47 loc) 873 B
/** * @file util * @author junmer eltorio */ /** * getFontFolder * */ declare function getFontFolder(): string; /** * getFonts * */ declare function getFonts(): string[]; /** * getPureText * * @see https://msdn.microsoft.com/zh-cn/library/ie/2yfce773 * @see http://www.unicode.org/charts/ * * @param str target text * @return pure text */ declare function getPureText(str: string): string; /** * getUniqText * */ declare function getUniqText(str: string): string; /** * get subset text * * @param {Object} opts opts * @return {string} subset text */ declare function getSubsetText(opts: any): any; /** * string to unicodes * */ declare function string2unicodes(str: string): number[]; export { getFontFolder }; export { getFonts }; export { getPureText }; export { getUniqText }; export { getSubsetText }; export { string2unicodes };