Tincture.Font.TTF.Name (Tincture v0.1.0)

Copy Markdown View Source

Parser for the OpenType name table.

The name table carries the human-readable strings a font exposes: family, subfamily, PostScript name, version. The same logical name appears several times under different platform, encoding and language IDs, so reading it is mostly a matter of picking the best-encoded record rather than the first one.

A CFF-flavoured OpenType font can also carry its family name in the CFF top DICT, so this falls back to Tincture.Font.CFF when the name table does not supply one.

Extracted from Tincture.Font.TTF.

Summary

Functions

parse_name_metadata(data, table_records)