Skip to content

fontlab_fontport.transfer

transfer

Detached glyph interchange; this module does not provide live font editing.

Writes replace selected-layer outlines and anchors plus glyph components and metadata. The supplied native glyph keeps its name, other layers and unknown state. Multi-shape and transformed targets are refused in this first stage. Validation and native construction are staged before destination mutation; native failures during final assignment are not a transactional undo facility.

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
to_fontparts function (native_glyph: Any) -> RGlyph Return a detached upstream fontshell RGlyph with no parent font.
to_ufo_glyph function (native_glyph: Any) -> Glyph Copy selected outlines/anchors and glyph metadata to a ufoLib2 glyph.
write_glyph function (source: Any, native_glyph: Any) -> None Replace an explicit native target from FontParts, defcon or ufoLib2.