addNewFont Method
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 246
Last Updated: 23 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.