fontlab_instamix.wrap · declarations 001
PLUGIN_KINDS
module-attribute
PLUGIN_KINDS
SCRIPT_SUFFIXES
module-attribute
SCRIPT_SUFFIXES
make_folder
make_folder(source: Path, out_dir: Path, ext_id: str, *, name: str | None = None, version: str = '0.1.0') -> Path
Create <out_dir>/<ext_id>.fontlabext with source under scripts/.
The manifest installs the scripts into Scripts/<ext_id>/.
make_plugin
make_plugin(source: Path, out_dir: Path, ext_id: str, *, plugin_id: str, name: str, kind: str, entry: str, min_app_version: str, version: str = '0.1.0') -> Path
Package an App-compatible draft, without executing or adapting its code.
A directory supplies bundle contents; a file supplies one Python module. App checks inheritance and class metadata when loading the installed bundle. Existing plugin.json must agree with all six explicit metadata fields.
make_zip
make_zip(folders: list[Path], zip_path: Path) -> Path
Zip .fontlabext folders (the folders themselves, not their contents).
slug
slug(text: str) -> str
Lowercase id part from free text.