fontlabapp.vfjo.Objects
fontlabapp.vfjo.Objects
FontLab object JSON: data is the guarded box root; methods add helpers.
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 |
|---|---|---|---|
__init__ |
function | (self, data: _Data) -> None |
|
__repr__ |
function | (self) -> str |
|
__slots__ |
attribute | ||
copy |
function | (self) -> Objects |
Return an independent, fully locked copy. |
copy_to_clipboard |
function | (self) -> None |
Put the JSON on the clipboard (<code>application/json</code> and plain text). |
describe |
function | (self) -> list[str] |
Return <code>json_data.describe</code> lines. |
envelope |
function | (self) -> json_data.Envelope |
Return a validated <code>json_data.Envelope</code> of the current data. |
glyph_names |
attribute | (self) -> list[str] |
Return the glyph names, in order. |
glyphs |
attribute | (self) -> list[_Data] |
Return the glyph boxes (singleton <code>glyph</code><code> or </code><code>objects[*].glyph</code>). |
items |
function | (self) -> list[tuple[str, _Data]] |
Return <code>(kind, box)</code> for each payload object, in order. |
kind |
attribute | (self) -> str |
<code>"glyph"</code><code>, </code><code>"layer"</code><code>, </code><code>"element"</code><code> or </code><code>"contour"</code><code>; </code><code>"mixed"</code><code>; </code><code>""</code> when empty. |
paste |
function | (self, font: Any=None, **kw: Any) -> json_data.Pasted |
Paste into <code>font</code><code> (default: the current font); see </code><code>vfjo.paste</code>. |
save |
function | (self, path: str | Path) -> Path |
Write pretty-printed object JSON to <code>path</code>; return the path. |
to_bytes |
function | (self, indent: int | None=None) -> bytes |
Return validated UTF-8 object JSON. |
to_dict |
function | (self) -> dict[str, Any] |
Return plain <code>dict</code><code>/</code><code>list</code> data. |