[webkit-dev] vertical text

Cary Clark caryclark at google.com
Fri Nov 11 05:59:55 PST 2011


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 <hyatt at apple.com> 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
> (hyatt at apple.com)
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20111111/38e4f247/attachment.html>


More information about the webkit-dev mailing list