Skip to content

fontlab_fontport.native_import

native_import

Open a UFO or a .designspace in FontLab through the native opener.

Thin wrappers over NativeApplication.open_font, which calls the MCP tool fontpr.call("open_font", path=...) that FontLab itself uses. Native checks (issue 201, task 17): a .ufo opens as one font with one master; a .designspace with one axis and two sources opens as one font with both masters and the axis. Kerning and anchor import through this route are not verified yet. Nothing is converted here, so no Fontport loss list applies; the caller owns the returned backend and must close it.

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
import_designspace function (path: str | Path, application=None) -> NativeFontBackend Open <code>path</code> (.designspace) with its source UFOs as one owned document.
import_ufo_native function (path: str | Path, application=None) -> NativeFontBackend Open <code>path</code> (.ufo directory) as a new owned FontLab document.