Grasshopper

algorithmic modeling for Rhino

How to set the text font of a displaypipeline drawText and draw dot?

Rhino.Display.DisplayPipeline
Public Sub DrawDot(worldPosition As Rhino.Geometry.Point3d, text As String, dotColor As System.Drawing.Color, textColor As System.Drawing.Color)
See the sdk, I can find where i can set the text font.
Anyone can help?Thank you!

Views: 466

Replies to This Discussion

Try DisplayPipeline.DrawObject() and make a Rhino.Geometry.TextDot (which has properties for Typeface) and put it inside a TextDotObject. I haven't tested it, but it's the only solution I can find.

Thank you David,I will try it. And another question. How can I make the Textdot's back color transparent?

That might not be possible. Do you just want to draw text that is always facing the camera? You can orient text planes any way you want.

No,I want Textdot.It can change size by itself--

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service