[BZ#664533] Support basic vertical writing
Submitted by Kurosawa Takeshi
Link to original bug (#664533)
Description
Created attachment 201896 Test of vertical writing text
Pango has supported basic vertical writing since 1.16.0. http://mail.gnome.org/archives/gnome-announce-list/2007-February/msg00070.html http://developer.gnome.org/pango/stable/pango-Vertical-Text.html
Therefore we could support basic vertical writing of SVG text. http://www.w3.org/TR/SVG/text.html#SettingInlineProgressionDirection
Although we could not implement all combinations of writing-mode,
glyph-orientation-horizontal and glyph-orientation-vertical
(because of Pango API's limitation),
it is possible to implement some combinations by using current API.
writing-mode: lr;
-
glyph-orientation-horizontal: 0; (default) PANGO_GRAVITY_SOUTH & PANGO_GRAVITY_HINT_STRONG
-
glyph-orientation-horizontal: 210; PANGO_GRAVITY_EAST & PANGO_GRAVITY_HINT_STRONG
writing-mode: tb;
-
glyph-orientation-vertical: auto; (default) PANGO_GRAVITY_EAST & PANGO_GRAVITY_HINT_NATURAL
-
glyph-orientation-vertical: 0; PANGO_GRAVITY_EAST & PANGO_GRAVITY_HINT_STRONG
-
glyph-orientation-vertical: 90; PANGO_GRAVITY_SOUTH & PANGO_GRAVITY_HINT_STRONG
Attachment 201896, "Test of vertical writing text":