Returns or modifies the font used by text object.
rhinoscriptsyntax.TextObjectFont (object_id, font=None)
rhinoscript.geometry.TextObjectFont (object_id, font=None)
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. |
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. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select text")
if rs.IsText(obj): rs.TextObjectFont(obj, "Arial")