API Reference > Namespaces > OdPdfPublish Namespace > Classes > OdButton Class > OdButton Methods > setFont Method > OdButton::setFont Method (OdString&, Text::FontStyle)
OdButton::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 button font name and style. 

 

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