Skip to content

fontlabapp.fonts.identity_tools.font_identity.trial

trial

Make prefixed trial copies of static fonts exported from the current font.

What: Keep selected FontLab glyphs in each matching exported OTF or TTF. Keep .notdef and component dependencies. Ligature expansion is off by default; tick Also keep ligatures to include the extra glyphs listed in the preview. Keep kerning and positioning unless Remove kerning and positioning is ticked. Keep the existing liga substitutions that survive this keep set. Prefix family, full, unique and PostScript names, including CFF names. Preserve copyright and licence records. How: Read exported binaries with fontTools, subset detached copies and save new files. Inspect the saved copies by reopening them in FontLab. No source font or source binary is edited. There is no font edit and no Undo step. Why: File > Export Font As produces the source binaries. This panel adds a selected glyph keep set and consistent trial names across those static exports. It avoids changing a live font or relying on Glyphs export-only custom parameters. Usage: Export static OTF/TTF instances to a folder first. Select the trial glyphs in FontLab. Open this panel, enter that folder, a different output folder and a prefix. Inspect the per-file preview, then press Make Trial Copies. Use selection reads the glyph selection again. Family name and UPM must match the current font; other files get named kept rows. Existing destinations are kept. Variable fonts are kept: export static instances before using this tool. Benefit: Repeatable trial binaries without deleting work from the design source. The keep set uses exported glyph names. Preserve glyph names in the export profile; renamed or absent glyphs are reported instead of silently dropped. Substitution features are limited to liga and the retained positioning feature tags; ligatures are not invented. Requires user-installed fontTools in FontLab's Python site-packages, such as the dependency installed with fontlab-fontport. FontLab's private copy is not used. Install it through Settings > Python if it is missing. Source inspection is cached until the folder or selection changes, or Refresh Exports is pressed. Prefix edits update destination names without opening fonts.

Independent behaviour rewrite of Fernando Díaz / Reset Type Studio, Glyphs-Scripts/Exports/Trial Font Maker.py. https://github.com/Reset-Type-Studio/Glyphs-Scripts Apache-2.0, declared in the repository README; no separate LICENSE file. No source code was copied.

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
INSTALL_HINT attribute
KEY attribute
NAME_IDS attribute
TITLE attribute
fonttools_api function () -> tuple[Any, Any, Any] Load the public user-installed package, with a useful refusal if absent.
inspect_binary function (font: Any, names: list[str]) -> None Refuse variable fonts and missing names before creating an output file.
main function () -> Any Open or replace only this tool's font-bound panel.
make_trial function (source: Path, destination: Path, names: list[str], prefix: str, *, keep_ligatures: bool=False, remove_positi… Serialize a detached subset before an exclusive write; reject changed sources.
name_encoding function (record: Any) -> str Refuse unknown name-table encodings before decoding or encoding text.
panel_type function () -> type Return a non-modal, font-bound export panel with explicit file previews.
prefix_text function (text: str) -> str Require an explicit ASCII prefix usable in both file and PostScript names.
preview function (folder: Path, destination: Path, names: list[str], prefix: str, family: str, upm: int, *, keep_ligatures: bo… Build file targets from source summaries; prefix changes need no font reads.
read_field function (widget: Any) -> str Read literal Qt text and refuse characters that cannot round-trip safely.
rename_binary function (font: Any, prefix: str) -> None Prefix every localized identity record and the CFF identity, once.
scan_exports function (folder: Path, names: list[str], family: str, upm: int) -> list[Any] Read sources once; cache exact baseline and optional ligature glyph sets.
studio_panel_type function () -> type Keep file plans in source order while allowing independent table sorting.
subset_binary function (font: Any, names: list[str], *, keep_ligatures: bool=False, remove_positioning: bool=False) -> None Subset a detached font; expand GSUB only with explicit consent.