FontMap Class

A FontMap holds the set of font names available in an iModel. Within the GeometryStream of an Element, a specific font is referenced by its FontId that is local to the iModel. This class maps FontIds to FontProps.

note The font map is generally established when the iModel is first created to specify the set of fonts available for editors. Adding new entries requires that the schema lock be held.

Methods

Name Description
constructor(props?: FontMapProps): FontMap    
addFonts(fonts: FontProps[]): void    
getFont(arg: string | number): undefined | FontProps look up a font by name or number and return its FontProps  
toJSON(): FontMapProps    

Properties

Name Type Description
fonts Readonly Map<number, FontProps>    

Defined in

Last Updated: 20 June, 2023