mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 08:55:34 +00:00
The ttfmeta library is extremely rudimentary. It does next to no error checking, and supports only a small part of the TTF spec. It did not support NAME platforms 0 or 3 (the most common platform, Windows), and these are encoded in UTF-16BE. This patch adds support for those platforms and throws if an unsupported platform/encoding is encountered. Now, the ttfmeta library is unsupported and gone (#11630). It is based on another library, ttfinfo, last updated 11 years ago. This is not great. But the other Node libraries that I located introduce further dependencies or complex builds (e.g. WASM) and that's not great either, for a function used only in one place in our build environment. https://learn.microsoft.com/en-us/typography/opentype/spec/name The test-font-family.ts runs a basic test against Lateef font, and has a skipped test that can be run (with minor edits) against all fonts in the keyboard repository. I have done this to verify that there are no fonts that return errors, but have disabled this test for deployment for now. Fixes: #11625 |
||
|---|---|---|
| .. | ||
| config | ||
| docs/api/etc | ||
| src | ||
| .gitignore | ||
| build.sh | ||