API Reference > Classes > OdIfcHostAppServices Class > OdIfcHostAppServices Methods > OdIfcHostAppServices::getSubstituteFontByChar Method
OdIfcHostAppServices::getSubstituteFontByChar Method
Syntax
C++
virtual OdString getSubstituteFontByChar(const OdFont& pFont, OdChar unicodeChar, OdDbBaseDatabase * pDb);
Parameters 
Description 
const OdFont& pFont 
[in] A TTF font object.  
OdChar unicodeChar 
[in] A symbol to find in the substitute font name.  
OdDbBaseDatabase * pDb 
[in] A raw pointer to the database context.  

a string object that contains the substitute font name.

Retrieves the typeface name of the TTF font that has the specified character.

The default method implementation uses the Windows API for getting the font.

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.