Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
font-patcher: Fix crash on some custom sets
[why] When a custom set is to be patched and that set contains the .notdef glyph the script crashes. [how] The glyphs has an unicode codepoint of -1, a code that we explicitely not patch. That leads to confusion when we try to determine the codepoint to be used for that glyph, because it has none. Exclude negative codepoint glyphs when we determine the selection of to-be-patched glyphs. As last resort for broken custom sets skip over glyphs that come out of order (which should be impossible). Fixes: ryanoasis#1005 Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
- Loading branch information