Close

Relief for ODA Team in Ukraine

Learn more
ODA IFC SDK
ExDAIHostAppServices::getSubstituteFont Method
Syntax
C++
virtual OdString getSubstituteFont(const OdString& fontName, OdFontType fontType);

Returns the font to be used when the specified font is not found. 

 

Parameters
Description
fontName
[in] Font name.
fontType
[in] Font type.

fontType must be one of the following: 

 

Name
Value
Description
kFontTypeUnknown
0
Unknown.
kFontTypeShx
1
SHX font.
kFontTypeTrueType
2
TrueType font.
kFontTypeShape
3
Shape file.
kFontTypeBig
4
BigFont file.

 

The default implementation of this function calls getAlternateFontName for fonts that are not of type kFontTypeShape or kFontTypeBig. When they are, and empty string is returned. 

Client code could override this function to perform custom substitution for these types of fonts.

Font Handling

Copyright © 2002-2022. Open Design Alliance All rights reserved.