fontlabapp.fontui.teaching_writers.font_name_encoding_audit
font_name_encoding_audit
What: Audit current-master naming and credit fields for legacy encoding support. How: Read the package fields and master twice. Test ASCII, Windows-1252 and Mac Roman; include a UTF-16-BE byte dump. Report each unencodable code point. PostScript font names are ASCII-required. Only the current master is read. Why: Silent replacement characters damage legacy name-table exports. Usage: Open a font, Refresh Current Font, inspect the JSON and Export New. Benefit: Give font build scripts a reproducible encoding report. The fields are source metadata, not the compiled binary name table.
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 codecs 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/codecs-19571722ed96aa9c.py SHA256: c39fb1bab6762e4b2286af604794547e07de9f5a680b4c671e7882c9a6ac9470 Historical source: rescued/part2/ports/tools/pyqt-official/codecs-19571722ed96aa9c.py SHA256: fe2257ea8123a18e3995ca919937fd16a02845c939d2ea695fd99cea327cd3a9
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 | (shared captured text) | |
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) |
encoding_report |
function | (captured: Capture) -> str |
Report every strict failure index; never substitute or drop a character. |
export_new |
function | (filename: str, text: str) -> None |
Write exact UTF-8 to a new absolute file; refuse overwrite and symlinks. (shared captured text) |
main |
function | () -> None |
Use FontLab's main window and Fly; never construct an application. (shared captured text) |
show |
function | (qt: Any, parent: Any, *, embedded: bool=False) -> Any |
Open a retained modeless panel; disconnect owned slots before deletion. |