API Reference > OdDg Classes > OdDgHostAppServices Class > OdDgHostAppServices Methods > OdDgHostAppServices::getPreferableFont Method
OdDgHostAppServices::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. 

 

fontType must be one of the following: 

 

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

 

The default implementation of this function returns an empty string.

Font Handling

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