Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbTextStyleTableRecord::setFont Method
Syntax
C++
void setFont(const OdString& typeface, bool bold, bool italic, int charset, int pitchAndFamily);

Associates the /Windows-font/ with the text style and sets its characteristics. 

 

Parameters
Description
typeface
[in] Typeface name of the /Windows-font/.
bold
[in] True - to set the Bold font.
italic
[in] True - to set the Italic font.
charset
[in] Windows character set identitier.
pitchAndFamily
[in] Windows pitch and character family identifier.

If typeface is an empty string, this method disassociates the /Windows-font/ with this text style and removes information about it.

Fonts of Text Styles 

OdDbTextStyleTableRecord::font() method

Copyright © 2002-2022. Open Design Alliance All rights reserved.