Thanks for the answer, Dave. That makes perfect sense.

Why is it that the graphics context is rotated but the advances supplied to
Font::DrawGlyphs in the GlyphBuffer aren't?

Cary

On Thu, Nov 10, 2011 at 5:22 PM, David Hyatt <[email protected]> wrote:

> On Nov 10, 2011, at 4:07 PM, Cary Clark wrote:
>
> > TL;DR: Why is the graphics context rotated when drawing vertical text?
>
> 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.
>
> dave
> ([email protected])
>
>
_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to