API Reference > Namespaces > OdPdfPublish Namespace > Classes > OdCheckBox Class > OdCheckBox Methods > setFont Method > OdCheckBox::setFont Method (OdString&, Text::FontStyle)
OdCheckBox::setFont Method (OdString&, Text::FontStyle)
Syntax
C++
void setFont(const OdString& fontName, Text::FontStyle fontStyle = Text::kRegular);
Parameters 
Description 
const OdString& fontName 
[in] A new font name.  
Text::FontStyle fontStyle = Text::kRegular 
[in] A new font style. 

Sets the checkbox font name and style. 

 

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.