Skip to content

fontlabapp.glyphs.background · declarations 001

Back to fontlabapp.glyphs.background

read

read(glyph: Any, layer: Any, contours: Callable[[Any], tuple[Any, ...]], report: Callable[[Exception], object]) -> tuple[Any, ...] | None

Return the mask's contours, () for an empty mask, or None.

None means no usable background: the layer is itself a mask, it has no valid mask, or the mask belongs to another glyph or is automatic (as App's background capture refuses); those last two are reported, not raised.