[webkit-dev] vertical text
David Hyatt
hyatt at apple.com
Thu Nov 10 14:22:33 PST 2011
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)
More information about the webkit-dev
mailing list