<div dir="ltr">Update: Still looking for reviewers! =) There are a handful of patches, but most of them are quite small...</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 15, 2014 at 10:19 AM, David Lonie <span dir="ltr"><<a href="mailto:david.lonie@kitware.com" target="_blank">david.lonie@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I finished up a patch to better handle rotated and aligned text, and cleaned up a few other rough spots in the text rendering system.</div><div><br></div><div>Looking for reviewers:</div><div><br></div><div><a href="http://review.source.kitware.com/#/t/4851/" target="_blank">http://review.source.kitware.com/#/t/4851/</a><br></div><div><br></div><div>Dave</div></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Wed, Oct 8, 2014 at 3:52 PM, David Lonie <span dir="ltr"><<a href="mailto:david.lonie@kitware.com" target="_blank">david.lonie@kitware.com</a>></span> wrote:<br></span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Folks,<div><br></div><div>We've noticed some odd behavior while rotating 2D vtkTextActors. There are two ways to do it:<div><br></div><div>vtkTextActor::SetOrientation(degrees), or</div><div>vtkTextProperty::SetOrientation(degrees)</div><div><br></div><div>These behave very differently, especially when alignment flags are used -- see the attached image for an example. The bottom two rows show this most clearly.</div><div><br></div><div>Rotating the text property will rotate the text as it is being rendered into the texture's buffer. This gives great antialiasing on the rotated text, but gives bad alignment results, since the vtkTextActor is currently aligning the entire texture to its position, rather than the text inside the texture.</div><div><br></div><div>Rotating the actor gives the expected alignment behavior, but bad antialiasing. This is because the text is rendered into the texture without rotation, and then rotated afterwards.</div><div><br></div><div>Combining the two (top row) gives the worst of both cases.</div><div><br></div><div>I'd like to fix the text actor to align things "correctly" when the text property is rotated. So my questions:</div><div><br></div><div>1) Is this behavior expected due to backwards compatibility?</div><div>2) If not, is this a good time to fix this? (e.g. are there any upcoming releases I should hold off for?)</div><div><br></div><div>Thanks,</div><div>Dave</div></div></div>
</blockquote></div></div></div><br></div>
</blockquote></div><br></div>