Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8531

Display Pipeline and DrawText

$
0
0

I am trying to draw text in a Display Pipeline. This much I have achieved, DrawText takes a TextEntity and a colour. However, this method only seems to draw Text at a Height of 1 and I cannot seem to change this. The TextEntities I am feeding in have heights ranging from 0.5 to 32 and yet all are the same size and scale when shown in the Pipeline.

I have tried using Draw2dText but this creates text that scales with the view, they are however relative to each other, the correct scale, but I need my text to be the correct size at all zoom levels. I even tried finding the ratio of zoom in the view so I could correct them by dynamically changing the scale, but this has also proved fruitless.

I know I could resort to converting the Text Entities to curves or surfaces and displaying/scaling those, however when I print they would not be selectable as text.

TL;DR;
Does anyone have any idea how to display text in the pipeline at the real scale of the TextEntity I am trying to feed in?

– Callum

3 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 8531

Trending Articles