ltag: Language Tag table

The ltag table is an Apple Advanced Typography (AAT) table.

class fontTools.ttLib.tables._l_t_a_g.table__l_t_a_g(tag=None)[source]

Bases: DefaultTable

Language Tag table

The AAT ltag table contains mappings between the numeric codes used in the language field of the name table and IETF language tags.

See also https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6ltag.html

addTag(tag)[source]

Add ‘tag’ to the list of langauge tags if not already there.

Returns the integer index of ‘tag’ in the list of all tags.

decompile(data, ttFont)[source]
compile(ttFont)[source]
toXML(writer, ttFont)[source]
fromXML(name, attrs, content, ttFont)[source]