addNewFont Method @beta
Add a new font name/type to the FontMap for this iModel and return its FontId.
addNewFont(name: string, type?: FontType): number
@returns The FontId for the newly added font. If a font by that name/type already exists, this method does not fail, it returns the existing Id.
@see FontId and FontMap
| Parameter | Type | Description | 
|---|---|---|
| name | string | The name of the font to add | 
| type | FontType | The type of the font. Default is TrueType. | 
Returns - number
The FontId for the newly added font. If a font by that name/type already exists, this method does not fail, it returns the existing Id.
Defined in
- core/backend/src/IModelDb.ts Line 247
Last Updated: 24 June, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.