fontlabapp.studios.derived_glyphs.placeholders · declarations 001
Back to fontlabapp.studios.derived_glyphs.placeholders
TITLE
module-attribute
TITLE
ap
module-attribute
ap
char_name
char_name(char: str) -> str
Return uniXXXX for a BMP character, uXXXXX above it.
check_text
check_text(text: str) -> None
Raise ValueError when text holds a character that FontLab can change.
code_of
code_of(name: str) -> int | None
Return the code point that a uniXXXX / uXXXXX name stands for, else None.
Surrogates and values above U+10FFFF are not characters: None.
create
create(package: Any, rows: Sequence[Row], advance: int, facts: Any, allow_rebuild: bool = False) -> dict[str, Any]
Create every ready row as an empty glyph on all masters with FontLab's Add Glyph command.
Return {"glyphs", "layers", "codes", "mismatches"}. Nothing ready
returns zeros and makes no native call. A name or code point that is
taken now, an unconsented rebuild, a code point without an active Font
window or with an open Glyph window, queued ids are disclosed with their possible date changes. A failure after the first glyph exists
raises RuntimeError that names the new glyphs.
font_codes
font_codes() -> dict[int, str]
Return {code point: glyph name} from the font-owned glyph records.
gate
Mark each ready row that can make FontLab rebuild automatic glyphs.
The row gets rebuild; without allow_rebuild its problem is the
"may rebuild auto ..." note, so it is skipped.
parse
parse(text: str) -> list[Entry]
Return one Entry per token. A single non-ASCII character becomes uniXXXX.