commonly have vertical written forms: text flow from top to bottom, progress from right to left Mongolian is also written from top to bottom, but progress from left to right Still widely used in Japanese and Traditional Chinese • • •
(http://www.w3.org/TR/css3-writing- modes/) defines new writing modes: horizontal-tb, vertical-rl and vertical-lr WebKit for Mac and Chrome already have implementations for this QDeclarativeText, etc. may want to have similar features • • •
class: QTextLayout Add a new option to QTextOption: setTextOrientation(int orientation), orientation can be either Qt::Vertical or Qt::Horizontal May add text progression option later • • •
just make sure we use the vertical font metrics and select proper OpenType GSUB/GPOS features for vertical layout (realigned punctuations, etc.) For “dumb” fonts it requires some other hacks Mixed scripts (latin text in vertical Chinese) need more care • • •
work on Windows and other HarfBuzz based systems as well. (Already a patch making use of this in QtWebKit) Line breaking support is still a little bit buggy. Relatively small amount of changes, planning to merge into master (Qt 5?) • • •