Skip to content

fontlab_fontport.interchange · declarations 001

Back to fontlab_fontport.interchange

BLOCKS_KEY module-attribute

BLOCKS_KEY

NATIVE_LOSSES module-attribute

NATIVE_LOSSES

import_native

import_native(source: Font)

Return a context owning a new registered native font, after preflight.

import_ufo

import_ufo(source: Font, backend_factory, *, native=False)

Own and close a new destination, with all preflight before allocation.

Outside FontLab this convenience exhausts preflight. Inside run_python use ImportSession.preflight_steps()/begin(), one next() per call, and close the returned owned font in the controller's finally block.

preflight_import

preflight_import(source: Font, *, native=False)

Yield checked units; allocate no native objects and perform no writes.