Skip to content

fontlabapp.studios.derived_glyphs.tabular · declarations 001

Back to fontlabapp.studios.derived_glyphs.tabular

centring_shift

centring_shift(layer: Any, width: int) -> int

Return the whole-unit x shift that centres the outline in width.

The left side becomes (width - ink width) // 2; an odd unit goes right.

naming

naming(name: str) -> tuple[str, str]

Return (new name, problem) for a selected glyph name.

prepare

prepare(rows: Sequence[Any], widths: dict[str, int]) -> list[Any]

Return the jobs: centred contour copies and the shared width per master.

survey

survey(package: Any, names: Sequence[str], facts: Any, allow_rebuild: bool = False) -> list[Any]

Plan one tabular copy per selected figure. Change nothing.

tabular_widths

tabular_widths(rows: Sequence[Any], extra: int) -> dict[str, int]

Map each master to the widest source advance (rounded half up) plus extra.