TextObjectFont

Returns or modifies the font used by text object.

Syntax

rhinoscriptsyntax.TextObjectFont (object_id, font=None)

rhinoscript.geometry.TextObjectFont (object_id, font=None)

Parameters

object_id

Required.  String or Guid.  The identifier of the object.

font

Optional.  String.  The new font face name.  If omitted, the current font is returned.

Returns

String

If a font is not specified,  the current font face name if successful.

String

If a font is specified,  the previous font face name if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select text")

if rs.IsText(obj): rs.TextObjectFont(obj, "Arial")

Also See

AddText

IsText

TextObjectHeight

TextObjectPlane

TextObjectPoint

TextObjectStyle

TextObjectText