Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
OdText::setFont Method (const OdString&, Text::FontStyle, Text::Language, bool)
Syntax
C++
void setFont(const OdString& fontName, Text::FontStyle fontStyle = Text::kRegular, Text::Language language = Text::kDefault, bool embed = false);

Sets font parameters for the text label. 

 

Parameters
Description
fontName
[in] A new font name for the text label.
fontStyle
[in] A new font style.
language
[in] A new font language for the text label.
embed
[in] A flag that determines whether the font is embedded.

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