fontlabapp.fontui.teaching_painter.svg_reference · declarations 001
Back to fontlabapp.fontui.teaching_painter.svg_reference
KEY
module-attribute
KEY
TITLE
module-attribute
TITLE
alignment_matrix
alignment_matrix(source: tuple[float, ...], target: tuple[float, ...]) -> tuple[float, ...]
Uniformly fit and center source bounds in target bounds; preserve aspect.
capture_outline
capture_outline() -> tuple[str, Any]
Double-check the current context and geometry around a detached Qt path.
Read only the current-master layer. App resolves transformed components. Compare raw geometry, layer and glyph ids, package ids and master before returning. Never read the native fgGlyph cache or notify font history.
main
main() -> Any
Open via the host registry; never construct another application.
panel_type
panel_type(qt: Any) -> type
Build an owned vector scene; leave painting and item lifetimes with Qt.
reference_file
reference_file(filename: str) -> Path
Read only an explicit existing SVG file; never rewrite its payload.
reference_matrix
reference_matrix(source: tuple[float, ...], viewbox: tuple[float, ...], target: tuple[float, ...], font_units: bool) -> tuple[float, ...]
Restore SVG user coordinates before optional silhouette normalization.
Qt item bounds use the SVG's default display size. Undo that display mapping using the renderer viewBox, including its x/y origin. Keep y downward.