Thanks for the answer, Dave. That makes perfect sense.<div><br></div><div>Why is it that the graphics context is rotated but the advances supplied to Font::DrawGlyphs in the GlyphBuffer aren't?</div><div><br></div><div>
Cary<br><br><div class="gmail_quote">On Thu, Nov 10, 2011 at 5:22 PM, David Hyatt <span dir="ltr"><<a href="mailto:hyatt@apple.com">hyatt@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Nov 10, 2011, at 4:07 PM, Cary Clark wrote:<br>
<br>
> TL;DR: Why is the graphics context rotated when drawing vertical text?<br>
<br>
</div>I assume you're referring to the rotation done by InlineTextBox. The basic reason for the rotation was that it was a minimal change to the code and allowed a bunch of other drawing functions to remain unchanged. You could certainly eliminate the rotation, but you'd then have to patch all of the InlineTextBox drawing functions (underlines, selection, spell check markers, etc.) to be able to operate horizontally or vertically.<br>

<br>
dave<br>
(<a href="mailto:hyatt@apple.com">hyatt@apple.com</a>)<br>
<br>
</blockquote></div><br></div>