fontlabapp.vfjo.Objects · declarations 001
Back to fontlabapp.vfjo.Objects
__init__
__init__(data: _Data) -> None
__repr__
__repr__() -> str
__slots__
class-attribute
instance-attribute
__slots__
fontlabapp.vfjo.Objects.copy_to_clipboard
copy_to_clipboard() -> None
Put the JSON on the clipboard (application/json and plain text).
fontlabapp.vfjo.Objects.describe
describe() -> list[str]
Return json_data.describe lines.
fontlabapp.vfjo.Objects.envelope
Return a validated json_data.Envelope of the current data.
fontlabapp.vfjo.Objects.glyph_names
property
glyph_names: list[str]
Return the glyph names, in order.
fontlabapp.vfjo.Objects.glyphs
property
glyphs: list[_Data]
Return the glyph boxes (singleton glyph or objects[*].glyph).
fontlabapp.vfjo.Objects.items
items() -> list[tuple[str, _Data]]
Return (kind, box) for each payload object, in order.
fontlabapp.vfjo.Objects.kind
property
kind: str
"glyph", "layer", "element" or "contour"; "mixed"; "" when empty.
fontlabapp.vfjo.Objects.paste
Paste into font (default: the current font); see vfjo.paste.
fontlabapp.vfjo.Objects.save
save(path: str | Path) -> Path
Write pretty-printed object JSON to path; return the path.
fontlabapp.vfjo.Objects.to_bytes
to_bytes(indent: int | None = None) -> bytes
Return validated UTF-8 object JSON.
fontlabapp.vfjo.Objects.to_dict
to_dict() -> dict[str, Any]
Return plain dict/list data.