Grasshopper

algorithmic modeling for Rhino

Hi there,

I've been trying to add tabs to a text I want to display on screen but the tabs contantly get replaced by small squares. Is there a way to avoid this? Following the code in C#:

private void RunScript()
  {
    string str = ("text1\t\t\ttext2");
    Rhino.Display.Text3d txt = new Rhino.Display.Text3d(str);

    text3d = txt;
  }

  private Rhino.Display.Text3d text3d;

  public override void DrawViewportWires(IGH_PreviewArgs args)
  {
    args.Display.Draw3dText(text3d, Color.Black);
  }

Thank you!

r

Views: 299

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service