@mlightcad/shx-parser
Version:
A TypeScript library for parsing AutoCAD SHX font files
18 lines (17 loc) • 657 B
TypeScript
import { ShxFileReader } from './fileReader';
import { ShxFontContentData, ShxFontType } from './fontData';
/**
* Interface for parsing the content section of a SHX font file.
* Different font types may have different parsing implementations.
*/
export interface ShxContentParser {
/**
* Parses the content section of a SHX font file.
* @param reader - The file reader positioned at the start of the content section
* @returns The parsed font content data
*/
parse(reader: ShxFileReader): ShxFontContentData;
}
export declare class ShxContentParserFactory {
static createParser(fontType: ShxFontType): ShxContentParser;
}