Skip to content

fontlabapp.studios.outline_doctor.fixes

fixes

Outline Doctor fixes: planners, native writers and read-back checks.

What: the eleven Scriptmix outline fixers, ported with their thresholds, options, row texts and checks: Delete Small/Duplicate Contours, Add Extremes, Fix Zero Handles, Delete Close Points, Straighten Short Curves, Curve All Straights, Straighten All Curves, Retract Handles, Round Coordinates and Remove Overlap. Every planner reads only; write_* runs inside the session's single history step; verify_* returns mismatch texts. Why: checks.CHECKS registers each trio so one session drives them all. Each planner also returns the after-geometry the TGlyph ghost draws.

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
CLOSE attribute
MARGIN attribute (shared captured text)
OPEN_NOTE attribute
OPEN_TT_NOTE attribute
SMOOTH_NOTE attribute
UNSUPPORTED_NOTE attribute
ZERO attribute (shared captured text)
advise_overlap function (layer: Any, edits: list) -> list[str] Remove Overlap's save-risk advice: a raw-Smooth final off-curve the merge introduced (fl#8517).
arc_length function (span: list[tuple[float, float]]) -> float
bezier function (cubic: tuple, t: float) -> tuple[float, float]
chord_offset function (point: tuple, a: tuple, b: tuple) -> tuple[float, float]
convert_plan function (layer: Any, reference: Any, mode: str) -> list[Issue] The shared planner of Curve All Straights ("curve") and Straighten All Curves ("line").
converted function (points: list, picked: list[int], mode: str) -> list Ghost points: a line gains handles at its thirds; a curve loses both handles.
cubic_indices function (points: list) -> list[tuple[int, int, int, int]]
cubic_runs function (points: list) -> list[tuple[int, int, tuple]] (segment number, start index, cubic) from <code>points&#91;0&#93;</code><code> (the original </code><code>segments</code>).
dropped function (points: list, indices: set[int]) -> list
extreme_plan function (points: list) -> list[tuple[int, int, list[float]]]
extremes function (p0: tuple, p1: tuple, p2: tuple, p3: tuple) -> list[float]
final_smooth_points function (contours: Any) -> set[tuple[float, float]] Coordinates of final off-curves of closed contours with raw Smooth (fl#8517); read only.
plan_close function (layer: Any, options: Mapping[str, Any], context: Context) -> list[Issue]
plan_curve_all function (layer: Any, options: Mapping[str, Any], context: Context) -> list[Issue]
plan_duplicates function (layer: Any, options: Mapping[str, Any], context: Context) -> list[Issue]
plan_extremes function (layer: Any, options: Mapping[str, Any], context: Context) -> list[Issue]
plan_overlap function (layer: Any, options: Mapping[str, Any], context: Context, *, fontgate: Any=None) -> list[Issue]
plan_retract function (layer: Any, options: Mapping[str, Any], context: Context) -> list[Issue]
plan_round function (layer: Any, options: Mapping[str, Any], context: Context) -> list[Issue]
plan_short function (layer: Any, options: Mapping[str, Any], context: Context) -> list[Issue]
plan_small function (layer: Any, options: Mapping[str, Any], context: Context) -> list[Issue]
plan_straighten_all function (layer: Any, options: Mapping[str, Any], context: Context) -> list[Issue]
plan_zero function (layer: Any, options: Mapping[str, Any], context: Context) -> list[Issue]
removal_edits function (issues: list[Issue]) -> list[Issue] Attach the expected contour count of each shape to its removals.
replaced function (points: list, changes: Mapping[int, tuple[float, float]]) -> list
retractions function (contour: Any, selected_only: bool, selected: set[int] | None) -> list[tuple[Any, float, float]]
roots function (a: float, b: float, c: float) -> list[float]
same_cycle function (a: list, b: list, tolerance: float) -> bool
snap function (value: float, grid: float) -> float
split function (cubic: tuple, ts: list[float]) -> list[tuple[float, float, bool]] Inner nodes after cutting <code>cubic</code><code> at every </code><code>t</code> (de Casteljau).
start_points function (shape: Any) -> set[tuple[float, float]]
third function (base: float, other: float) -> float
verify_close function (layer: Any, edits: list) -> list[str]
verify_counts function (layer: Any, edits: list) -> list[str]
verify_curves function (layer: Any, edits: list) -> list[str]
verify_moves function (layer: Any, edits: list) -> list[str]
verify_overlap function (layer: Any, edits: list) -> list[str]
verify_removals function (layer: Any, edits: list) -> list[str]
verify_round function (layer: Any, edits: list) -> list[str]
verify_zero function (layer: Any, edits: list) -> list[str]
with_extremes function (points: list, plan: list) -> list
write_close function (layer: Any, edits: list, options: Mapping[str, Any]) -> None
write_curves function (layer: Any, edits: list, options: Mapping[str, Any]) -> None
write_extremes function (layer: Any, edits: list, options: Mapping[str, Any]) -> None
write_lines function (layer: Any, edits: list, options: Mapping[str, Any]) -> None
write_moves function (layer: Any, edits: list, options: Mapping[str, Any]) -> None
write_overlap function (layer: Any, edits: list, options: Mapping[str, Any]) -> None
write_removals function (layer: Any, edits: list, options: Mapping[str, Any]) -> None
write_round function (layer: Any, edits: list, options: Mapping[str, Any]) -> None
write_zero function (layer: Any, edits: list, options: Mapping[str, Any]) -> None