Skip to content

fontlab_fontport.transfer · declarations 001

Back to fontlab_fontport.transfer

to_fontparts

to_fontparts(native_glyph: Any) -> RGlyph

Return a detached upstream fontshell RGlyph with no parent font.

Changes to the returned object do not write back to FontLab.

to_ufo_glyph

to_ufo_glyph(native_glyph: Any) -> Glyph

Copy selected outlines/anchors and glyph metadata to a ufoLib2 glyph.

This interchange slice excludes native guides, hints and images. It never changes the native object or creates a live host proxy.

write_glyph

write_glyph(source: Any, native_glyph: Any) -> None

Replace an explicit native target from FontParts, defcon or ufoLib2.

The destination name is retained even when the source name differs. Identifiers, anchor colors, unnamed anchors, guidelines and images are refused before mutation. Only the selected layer's contours/anchors are replaced; hints, guides, shape style and other layers are left in place.