API Reference > Classes > OdMvdXmlHostAppServices Class > OdMvdXmlHostAppServices Methods > OdMvdXmlHostAppServices::getSubstituteFontByChar Method
OdMvdXmlHostAppServices::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.  

Returns 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-2021. Open Design Alliance. All rights reserved.