SketchTextInput.fontName Property

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

Description

Gets and sets the name of the font to use.

Syntax

"sketchTextInput_var" is a variable referencing a SketchTextInput object.

# Get the value of the property.
propertyValue = sketchTextInput_var.fontName

# Set the value of the property.
sketchTextInput_var.fontName = propertyValue
"sketchTextInput_var" is a variable referencing a SketchTextInput object.
#include <Fusion/Sketch/SketchTextInput.h>

// Get the value of the property.
string propertyValue = sketchTextInput_var->fontName();

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

Property Value

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

Samples

Name Description
Sketch Text API Sample Demonstrates creating sketch text by creating both mult-line text and text along a curve.

Version

Introduced in version March 2015