Skip to content

fontlab_instamix.extension

extension

Install and uninstall .fontlabext folders and .fontlabextz zips.

Flow: unpack (zip only) -> copy the folder to <data>/Extensions/Library/<id>.fontlabext -> link each file named by the manifest install rules into its target (symlink, or copy on Windows or when symlinking fails) -> record every created path in the ledger. Uninstall removes exactly the recorded paths that are still ours.

Classes

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
EXT attribute
JUNK attribute
LIBRARY attribute
ZIP attribute
basename function (path: Path | str) -> str Folder name without <code>.fontlabext</code><code> (the </code><code>{}</code> placeholder).
check_member function (name: str) -> None Reject zip member names that could write outside the target folder.
default_copy function () -> bool Copy instead of symlinking on Windows.
generated_entries function (data: Path, paths: list[Path]) -> list[dict] Ledger entries for files and folders that instamix wrote itself.
hook_for function (folder: Path) -> Path | None Optional installer hook next to an unpacked extension.
inside function (data: Path, path: Path) -> bool True if <code>path</code><code> lies inside </code><code>data</code>; the last part is not followed.
install function (path: Path, data: Path | None=None, *, copy: bool | None=None, run_hooks: bool=False, requirements=None, tar… Install an extension folder, its manifest, or all folders in an archive.
install_folder function (folder: Path, data: Path, *, copy: bool | None=None, requirements=None, target: env.Target | None=None, edit… Install one unpacked <code>.fontlabext</code> folder; return its ledger record.
installed function (data: Path | None=None) -> list[dict]
is_ext function (path: Path | str) -> bool
is_zip function (path: Path | str) -> bool
library_path function (data: Path, ext_id: str) -> Path
plan function (folder: Path, info: manifest.Manifest, name: str, data: Path, *, version: str | None=None) -> list[tuple[Pat… Return <code>(source, target)</code> pairs for every file the manifest installs.
preflight_plugin_migration function (data: Path, pairs: list[tuple[Path, Path]], previous: dict | None) -> None Refuse distinct legacy bundles that removal would retain before any writes.
remove_entries function (data: Path, entries: list[dict]) -> list[str] Remove recorded paths that are still ours; return the ones left behind.
restore_entries function (data: Path, entries: list[dict]) -> None Re-create entries removed by :func:_remove_tracked (rollback).
sources function (folder: Path, pattern: str) -> list[tuple[Path, str]] Files matched by a <code>from</code> pattern, with their path below the match root.
stage function (folder: Path, target: Path, data: Path) -> None Copy <code>folder</code><code> to </code><code>target</code>, replacing an older copy at the last moment.
uninstall function (ext_id: str, data: Path | None=None) -> list[str] Uninstall <code>ext&#95;id</code>; return paths left in place because they changed.
uninstall_links function (data: Path, record: dict) -> list[str]
unpack function (zip_path: Path, into: Path) -> list[Path] Extract a <code>.fontlabextz</code><code> into </code><code>into</code><code>; return its </code><code>.fontlabext</code> folders.