Skip to content

Instantly share code, notes, and snippets.

@itiut
Last active August 29, 2015 14:13
Show Gist options
  • Select an option

  • Save itiut/09bc1e906360ca786de4 to your computer and use it in GitHub Desktop.

Select an option

Save itiut/09bc1e906360ca786de4 to your computer and use it in GitHub Desktop.
Miguフォント生成スクリプトmigu_build.shで、"TypeError: No such glyph"が出るときのパッチ
--- 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