diff --git a/ofl/nanummyeongjo/NanumMyeongjo-Bold.ttf b/ofl/nanummyeongjo/NanumMyeongjo-Bold.ttf index b57f3e9cb9..e5074c58aa 100644 Binary files a/ofl/nanummyeongjo/NanumMyeongjo-Bold.ttf and b/ofl/nanummyeongjo/NanumMyeongjo-Bold.ttf differ diff --git a/ofl/nanummyeongjo/NanumMyeongjo-ExtraBold.ttf b/ofl/nanummyeongjo/NanumMyeongjo-ExtraBold.ttf index 022426fe08..33be422089 100644 Binary files a/ofl/nanummyeongjo/NanumMyeongjo-ExtraBold.ttf and b/ofl/nanummyeongjo/NanumMyeongjo-ExtraBold.ttf differ diff --git a/ofl/nanummyeongjo/NanumMyeongjo-Regular.ttf b/ofl/nanummyeongjo/NanumMyeongjo-Regular.ttf index 92ed01277c..f2c0f38951 100644 Binary files a/ofl/nanummyeongjo/NanumMyeongjo-Regular.ttf and b/ofl/nanummyeongjo/NanumMyeongjo-Regular.ttf differ diff --git a/ofl/nanummyeongjo/hotfix-space.py b/ofl/nanummyeongjo/hotfix-space.py new file mode 100644 index 0000000000..7989b8228d --- /dev/null +++ b/ofl/nanummyeongjo/hotfix-space.py @@ -0,0 +1,27 @@ +#!/usr/bin/env python3 +from fontTools.ttLib import TTFont +from fontTools.ttLib.tables._g_l_y_f import Glyph +from bumpfontversion.sfnthandler import SFNTHandler +from bumpversion.version_part import VersionPart +import glob + +h = SFNTHandler() + +for font in glob.glob("*.ttf"): + ttfont = TTFont(font) + for table in ttfont["cmap"].tables: + if table.format == 4: + table.cmap[ord(" ")] = "space" + table.cmap[0xA0] = "space" + glyphs = ttfont.getGlyphOrder() + glyphs.append("space") + ttfont.setGlyphOrder(glyphs) + + ttfont["glyf"].glyphs["space"] = Glyph() + ttfont["hmtx"].metrics["space"] = (1024, 0) + + ttfont.save(font) + + current_version = h.current_version(font) + current_version._values["minor"] = VersionPart("031") + h.set_version(font, current_version)