Skip to content

fontlabapp.fontui.wrap

wrap

Optional line wrapping for the sequence preview; display only, no layout.

Fontport places the run (advances and kerning); this only splits it into lines no wider than width font units, restarting each line at x 0 (RTL lines end at x 0). A glyph wider than width gets a line of its own.

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
wrap function (glyphs: list[Any], width: float | None, direction: str) -> list[tuple[float, int]] Return a display (x, line) per occurrence, in run order.