Skip to main content

Module vertical

Module vertical 

Source
Expand description

Vertical text orientation utilities — basic UAX #50 subset.

Determines whether a Unicode codepoint should be rendered upright (CJK-style, keeping its standard orientation) or rotated 90° clockwise when used in top-to-bottom vertical text.

Structs§

VerticalMetrics
Vertical-layout metrics for a single glyph.

Functions§

is_upright_in_vertical
Returns true if c should be drawn upright in vertical text.
vmtx_advance_for_glyph
Returns the scaled vertical advance for glyph_id from the font’s vmtx table. Falls back to em_size if the face cannot be parsed, the vmtx table is absent, or the glyph has no explicit vertical advance.