Skip to content

fontlabapp.glyphs.identity_tools.glyph_identity.unicode_from_names · declarations 001

Back to fontlabapp.glyphs.identity_tools.glyph_identity.unicode_from_names

ACCENTS module-attribute

ACCENTS

AGL module-attribute

AGL

AGL_TEXT module-attribute

AGL_TEXT

KEY module-attribute

KEY

MAX_CODE module-attribute

MAX_CODE

OPERATION module-attribute

OPERATION

SURROGATES module-attribute

SURROGATES

TITLE module-attribute

TITLE

U module-attribute

U

UNI module-attribute

UNI

apply_unicodes

apply_unicodes(native: Any, qtcore: Any, package_id: int, names: list[str], overwrite: bool, *, disclosure: dict[str, Any] | None = None) -> list[str]

Assign the implied code points to NAMES. One Undo step. Return names changed.

Rescan first, so a stale preview cannot write. Raise ValueError for an empty selection, a switched font (queued updates are disclosed).

code_for_name

code_for_name(name: str) -> tuple[int | None, str]

Return (code point, source) implied by NAME, or (None, "").

Source is "uni", "u", "AGL" or "derived". Names with a dot after the first character (suffixes) or with an underscore (ligatures) imply nothing.

main

main() -> Any

Open or replace the Unicode from Names panel.

plan_unicodes

plan_unicodes(facts: Facts, names: list[str], overwrite: bool) -> list[tuple[str, list[int], int, str, str]]

Return (name, current codes, implied code, source, status) for each implying name.

Status is "same", "assign", "encoded differently", "used by " or a refusal reason. A row that is "assign" claims its code, so a later row with the same code reads "used by ".