Skip to content

fontlabapp.core.outline

outline

Native outline reads that studios may not reach directly.

What: merged_copy(shape) returns a detached FontGate copy of a native flShape with its overlaps removed (the Scriptmix Remove Overlap route: convertToFgShape then fgShape.removeOverlap), and font_info returns fontpr's get_font_info JSON for a package, which carries every master's metrics and stems without switching the current master. Why: the studio boundary refuses fontgate and fontlabapp._native; the Outline Doctor (fontlabapp.studios.outline_doctor) calls these. Neither function writes the font. Only convertToFgShape, removeOverlap and the copy's contours/countNodes are touched: probing other FontGate attributes has crashed the host (AGENTS.md, Issue 235).

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
font_info function (package: Any, *, fontpr: Any=None) -> dict[str, Any] Fontpr <code>get&#95;font&#95;info</code><code> for </code><code>package</code> (read-only; ValueError when unreadable).
master_measures function (data: dict[str, Any], master: str) -> tuple[tuple[float, ...], tuple[float, ...], tuple[float, ...]] (ascender, cap height, x height, descender), horizontal and vertical stems of <code>master</code>.
merged_copy function (shape: Any, *, fontgate: Any=None) -> Any A detached <code>fgShape</code><code> copy of </code><code>shape</code> with overlaps removed (no write).
node_counts function (copy: Any) -> tuple[int, ...] Sorted node counts of every contour of a FontGate copy.