fontlabapp.glyphs.identity_tools.glyph_labels.batch_glyph_notes · declarations 001
Back to fontlabapp.glyphs.identity_tools.glyph_labels.batch_glyph_notes
KEY
module-attribute
KEY
OPERATION
module-attribute
OPERATION
TITLE
module-attribute
TITLE
apply_notes
apply_notes(native: Any, qtcore: Any, package_id: int, names: list[str], text: str, append: bool, *, disclosure: dict[str, Any] | None = None) -> list[str]
Write the note to NAMES. One Undo step. Return the names changed.
Refused glyphs are skipped. Raise ValueError for an empty selection, a switched font (queued updates are disclosed).
main
main() -> Any
Open or replace the Batch Glyph Notes panel.
note_text
note_text(existing: str, text: str, append: bool) -> str
Return the new note. Append joins with one newline when both parts have text.
plan_notes
plan_notes(facts: Facts, names: list[str], text: str, append: bool) -> list[tuple[str, str, str, str]]
Return (name, old note, new note, status) for each glyph in NAMES.
Status is "change", "same" or the reason the glyph is refused.