Last active
August 29, 2015 14:13
-
-
Save itiut/09bc1e906360ca786de4 to your computer and use it in GitHub Desktop.
Miguフォント生成スクリプトmigu_build.shで、"TypeError: No such glyph"が出るときのパッチ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- mig.d/scripts/build-ttf.py.orig 2015-01-15 16:09:35.633182603 +0900 | |
| +++ mig.d/scripts/build-ttf.py 2015-01-15 16:10:34.105183865 +0900 | |
| @@ -497,9 +497,8 @@ | |
| # U+2060 WORD JOINER (zero width non-breaking space) | |
| # U+FEFF ZERO WIDTH NO-BREAK SPACE (Byte Order Mark) | |
| for c in (0x200B, 0x2060, 0xFEFF): | |
| - f.createChar(c) | |
| - for c in (0x200B, 0x2060, 0xFEFF): | |
| - f[c].width = 0 | |
| + g = f.createChar(c) | |
| + g.width = 0 | |
| #  ̄ ‾upper line | |
| if fontname[7] == 'm': |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment