Skip to content

anim-format (runtime format) / VerticalPiece

Interface: VerticalPiece ​

Vertical (CJK) text layout, writingMode: "vertical" — CSS vertical-rl with text-orientation: mixed: characters run top to bottom, columns right to left from the box's right edge; CJK characters stand upright (punctuation as its vertical presentation form), other runs (Latin words, digits) are turned 90° clockwise. Pure: the caller measures text widths. Shared by the editor's renderer, its SVG export and pixi-hm05.

Properties ​

PropertyTypeDescription
advancenumberupright: the slot of one character (size + letter spacing)
cxnumberthe column's centre line
lengthnumberlength along the column
styleTextStyle-
textstringthe characters; upright pieces already hold their vertical forms
uprightbooleantrue = CJK, one character per advance; false = turned 90° clockwise
ynumbertop of the piece along the column

HereSplash — 2D animation for the web