@mlightcad/data-model
Version:
The data-model package provides the core classes for interacting with AutoCAD's database and entities. This package mimics AutoCAD ObjectARX's AcDb (Database) classes and implements the drawing database structure that AutoCAD developers are familiar with.
48 lines • 1.67 kB
TypeScript
import { AcDbDatabase } from './AcDbDatabase';
import { AcDbSymbolTable } from './AcDbSymbolTable';
import { AcDbTextStyleTableRecord } from './AcDbTextStyleTableRecord';
/**
* Symbol table for text style table records.
*
* This class manages text style table records which represent text styles
* within a drawing database. Text styles define the appearance and properties
* of text entities, including font, size, and other formatting options.
*
* @example
* ```typescript
* const textStyleTable = new AcDbTextStyleTable(database);
* const fonts = textStyleTable.fonts;
* console.log('Available fonts:', fonts);
* ```
*/
export declare class AcDbTextStyleTable extends AcDbSymbolTable<AcDbTextStyleTableRecord> {
/**
* Creates a new AcDbTextStyleTable instance.
*
* @param db - The database this text style table belongs to
*
* @example
* ```typescript
* const textStyleTable = new AcDbTextStyleTable(database);
* ```
*/
constructor(db: AcDbDatabase);
/**
* Gets all fonts used in text styles.
*
* This method iterates through all text style table records and extracts
* the font names from both the primary font file and big font file.
* Font names are normalized by removing file extensions and converting to lowercase.
*
* @returns Array of unique font names used in text styles
*
* @example
* ```typescript
* const fonts = textStyleTable.fonts;
* console.log('Available fonts:', fonts);
* // Output: ['arial', 'times', 'calibri', ...]
* ```
*/
get fonts(): string[];
}
//# sourceMappingURL=AcDbTextStyleTable.d.ts.map