API Reference > OdDb Classes > OdDbHostAppServices Class > OdDbHostAppServices Methods > OdDbHostAppServices::getPreferableFont Method
OdDbHostAppServices::getPreferableFont Method
Syntax
C++
virtual OdString getPreferableFont(const OdString& fontName, OdFontType fontType);
Parameters 
Description 
const OdString& fontName 
[in] Font name.  
OdFontType fontType 
[in] Font type. 

Returns the preferable font name for the specified font name and type. 

 

This function is called as the first step in the process of resolving a font file. The default implementation tries to locate a font mapping file by calling getFontMapFileName, and substitutes the font name based on the contents of this file. 

fontType must be one of the following: 

 

Name 
Value 
Description 
kFontTypeUnknown 
Unknown. 
kFontTypeShx 
SHX font. 
kFontTypeTrueType 
TrueType font. 
kFontTypeShape 
Shape file. 
kFontTypeBig 
BigFont file. 

Font Handling

Copyright © 2002–2020. Open Design Alliance. All rights reserved.