Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
OdButton::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 the parameters of the button font. 

 

Parameters
Description
fontName
[in] A new font name.
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 represented 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.