mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-25 02:37:00 -06:00
The character's language (as IDML names it) maps to a BCP 47 tag (designcraft_doc::language_tag) and is the shaping context's language on the harfrust buffer, so OpenType locl applies for every language in the list (Japanese, Chinese, Korean, Turkish, ...), not only Arabic, Persian, Urdu, Hebrew and English: other names used to reach the shaper as they were written, which it doesn't know, so their locl never applied. designcraft_fonts no longer maps names itself. The word-shaping cache is keyed by the tag. Chinese: Simplified and Chinese: Traditional join the language list (plain Chinese stays, tagged zh); Simplified Chinese takes curly quotes, Traditional Chinese corner brackets.