CustomGraphicsText.font Property

Parent Object: CustomGraphicsText
Defined in namespace "adsk::fusion" and the header file is <Fusion/Graphics/CustomGraphicsText.h>

Description

Gets and sets the font used to display the text. This is the default font and applies to all of text unless there is a font override defined within the text.

Syntax

"customGraphicsText_var" is a variable referencing a CustomGraphicsText object.

# Get the value of the property.
propertyValue = customGraphicsText_var.font

# Set the value of the property.
customGraphicsText_var.font = propertyValue
"customGraphicsText_var" is a variable referencing a CustomGraphicsText object.
#include <Fusion/Graphics/CustomGraphicsText.h>

// Get the value of the property.
string propertyValue = customGraphicsText_var->font();

// Set the value of the property, where value_var is a string.
bool returnValue = customGraphicsText_var->font(value_var);

Property Value

This is a read/write property whose value is a string.

Version

Introduced in version April 2019