Returns or modifies the font used by an annotation text dot object.
rhinoscriptsyntaax.TextDotFont (object_id, fontface=None)
rhinoscript.geometry.TextDotFont (object_id, fontface=None)
object_id |
Required. Guid or String. The identifier of the object. |
fontface |
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 dot")
if rs.IsTextDot(obj): rs.TextDotFont( obj, "Arial" )