Skip to content

fontlabapp.fontui.teaching_writers.localized_font_names

localized_font_names

What: Draft localized typographic family and subfamily names for a font build. How: Prefill from current-master package names, with family/style fallback. Only the current master is read; the tool never changes the active master. Escape Windows UTF-16 name strings and export an OpenType feature fragment. Why: Keep language-specific name IDs 16 and 17 separate from legacy names. Usage: Refresh, enter translations and a Windows language ID, then Export New. Include the resulting .fea in an AFDKO makeotf or fontmake feature file; inspect the compiled name table. This tool does not install a translation or edit the open font. Benefit: Produce build input instead of changing global application language. Export or explicitly discard edited translations before closing. Language IDs are decimal or 0x-prefixed; the tool checks range, not language registration. Syntax: https://adobe-type-tools.github.io/afdko/OpenTypeFeatureFileSpecification.html#9.e

Setup: FontLab 9, Python 3.11, Fly and App draft_signals/qt_properties. Modeless panel; font data, selection and application preferences stay unchanged.

Independent rewrite of the Qt i18n example idea (Qt/Riverbank Computing; Nokia Corporation). Based on the author's own FontLab sample, Apache-2.0. Historical source: rescued/part3/pyqt-official-ports/ports/tools/pyqt-official/i18n-eca1cd9ef1528607.py SHA256: a60c542ce24e27441a1c022e8fc57630edf380676eda4904bebc50510eb03047 Historical source: rescued/part2/ports/tools/pyqt-official/i18n-eca1cd9ef1528607.py SHA256: 6253c957368cdf32b0a298001f6bb07cec0abc724e4f0918918facba0cde245f

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
Capture attribute (shared captured text)
FIELDS attribute
HELP attribute
TITLE attribute
capture_info function (native: Any=None) -> Capture Read naming text and master twice from one fenced workspace package. (shared captured text)
checked function (text: str) -> str Refuse text that the Qt bridge can change or UTF-8 cannot encode. (shared captured text)
export_new function (filename: str, text: str) -> None Write exact UTF-8 to a new absolute file; refuse overwrite and symlinks. (shared captured text)
feature_string function (text: str) -> str Encode non-ASCII, quote and backslash as exact UTF-16 escape units.
main function () -> None Use FontLab's main window and Fly; never construct an application. (shared captured text)
name_feature function (family: str, style: str, language: str, master: str) -> str Make a standalone name table fragment for IDs 16 and 17, platform 3/1.
show function (qt: Any, parent: Any, *, embedded: bool=False) -> Any Open a retained modeless panel; disconnect owned slots before deletion.