Some formats include a declaration of which language is being used for a given piece of text. This can be used to influence aspects of the text layout, including the exact choice of glyphs used in a given font. While we make relatively little use of this at present, we try to preserve the information as part of our philosophy of not losing any information unnecessarily.
Accordingly, we use ISO 639 language specification strings, for example:
To save space we pack these into 15 bits. Accordingly, we provide a way to pack/unpack these to/from the more normal string representations: