API Reference > Namespaces > OdPdfPublish Namespace > Classes > OdText Class > OdText Methods > setFont Method > OdText::setFont Method (OdString&, Text::Language, bool)
OdText::setFont Method (OdString&, Text::Language, bool)
Syntax
C++
void setFont(const OdString& fontName, Text::Language language, bool embed);
Parameters 
Description 
const OdString& fontName 
[in] A new font name for the text label.  
Text::Language language 
[in] A new font language for the text label.  
bool embed 
[in] A flag that determines whether the font is embedded. 

Sets font name and font language for the text label. 

 

This method can set a font that is not in the list of standard fonts. By default the normal Times New Roman font is used.

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