Skip to content

fontlabapp.glyphs.identity_tools.character_consistency.case_pairs

case_pairs

Find the upper- or lowercase counterparts of the selected glyphs and select them.

What it does: Counterparts come from Unicode case mapping of each glyph's code point; unencoded alternates use their base name (a.ss01 -> A.ss01). Select the counterparts alone or together with the originals. Nothing in the font changes.

How it works: Map Unicode case counterparts to existing glyphs. For unencoded suffixed names, try the base counterpart with the original suffix; reject multi- character case expansions.

Why this design: A Unicode case change is not always one glyph, so missing or expanding mappings remain visible rather than guessed.

How to use: Select source glyphs and run Names > Case Pairs. Review the mapping rows, choose whether originals stay selected and select the available counterparts.

Benefit: Move between related case glyphs while preserving names, encodings and outlines.

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
KEY attribute
QtCore attribute (shared captured text)
QtGui attribute (shared captured text)
TITLE attribute
counterpart function (name: str, codes_of: dict[str, list[int]], by_code: dict[int, str]) -> tuple[str | None, str] (counterpart name or None, how) for one glyph name.
font_glyphs function () -> list[tuple[str, list[int]]] Read current font state through the shared Names access helper.
index function (glyphs: list[tuple[str, list[int]]]) -> tuple[dict[str, list[int]], dict[int, str]] (codes by name, first glyph by code) for fast lookups.
main function () -> Any Open or replace this owned modeless Names panel.
muted attribute
selected_names function () -> list[str] Read current font state through the shared Names access helper.
swap_case function (char: str) -> str The single-character case counterpart, or "" (ß -> SS has no single counterpart).