Skip to content

fontlabapp.studios.derived_glyphs.tabular

tabular

Tabular figures tab: Scripts/Contours/Tabular Figure Copies.py in host mode.

One .tf copy per selected figure. Every copy on a master gets one shared width: the widest selected figure on that master (rounded half up) plus Extra width (-200..400 units, default 0); each outline is centred in it. Names that are not figures or are tabular already are skipped, as are repeated, missing and existing targets and auto/composite/empty sources. The rebuild consent and Use selection behave as in the original. The pure functions below are the original's, verbatim (only their local fly imports are module names here).

Classes

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
FIGURES attribute (shared captured text)
SUFFIX attribute (shared captured text)
centring_shift function (layer: Any, width: int) -> int Return the whole-unit x shift that centres the outline in <code>width</code>.
contour_copy attribute (shared captured text)
glyph_copies attribute (shared captured text)
naming function (name: str) -> tuple[str, str] Return (new name, problem) for a selected glyph name.
prepare function (rows: Sequence[Any], widths: dict[str, int]) -> list[Any] Return the jobs: centred contour copies and the shared width per master.
qt attribute (shared captured text)
survey function (package: Any, names: Sequence[str], facts: Any, allow_rebuild: bool=False) -> list[Any] Plan one tabular copy per selected figure.
tabular_widths function (rows: Sequence[Any], extra: int) -> dict[str, int] Map each master to the widest source advance (rounded half up) plus <code>extra</code>.