From 182086d62219196f09ca5471f526ff1188bd5e11 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Mon, 9 Dec 2024 15:31:38 +0000 Subject: [PATCH 1/2] Hotfixed fonts to add a space character --- ofl/nanummyeongjo/NanumMyeongjo-Bold.ttf | Bin 3074700 -> 3074720 bytes ofl/nanummyeongjo/NanumMyeongjo-ExtraBold.ttf | Bin 3180868 -> 3180888 bytes ofl/nanummyeongjo/NanumMyeongjo-Regular.ttf | Bin 3058388 -> 3058408 bytes 3 files changed, 0 insertions(+), 0 deletions(-) diff --git a/ofl/nanummyeongjo/NanumMyeongjo-Bold.ttf b/ofl/nanummyeongjo/NanumMyeongjo-Bold.ttf index b57f3e9cb99dc18c056ee1bfd6cd2940fbc5c348..e5074c58aa732e68fc9b4f3b873460e8f8bc5cdb 100644 GIT binary patch delta 714 zcmXBOUr19?90%~BareTq8>(3MCKg22rTij@0|~ybME(de)o6I-OsOC2JY1* zCyB_?)g20_AE$eX7gmYbU{|>3l<8&rN#eze$R|SK{Rd-<-=^`c_xDFsS>tWLzY`Vi z6PXT0#^aK>Y`jdg_6g^Qqne_AxfD`~O7ldm zAW^)9C+WeAEM;F67^{$|f%-|N%*5RCx)3;%eNi+rKhXv=F&nF8^=KvLVxG;tyh_Yf zt~Ik3<||iPQs`dv$%I$QXfdB>&!3ZWWg9R#}61IR9w!${30vl|H zYS;lgp$2N94tBwAs0TYZU=KK9FG$b;E^vbfywC_u&G7%|9}OLNsx7HIZBJ^7Eqt8FJ1^o((a|eJJo5;Xh9g>K*_9 delta 696 zcmXZWT}V@57zgm@Jv;lb54E*YbJ=lUt~rk@u!uA)q;(Sumsd%8T02{@qX!+aAT%fl zB1jmt30@d@7j|=q5qcp;WTPO0qG1Fy79}?MDzpg;*27t z)T4RJ0QxBugb_)Jx>x%RB)0V82P^96cv5zlklg{I=S<5Vg~{-?)$`hLtlv zJU!RpAFAvANzFV8L{DEFxTo)LUw*Zvd)Z;Lte-q0YZJ`+*@uSVKYMio@mW;#S$5+2 zYuNwLbu!U}wp3!w+)BeF(fxFOZ9`iw8(HTj<5?}Uu|}LECNRgpy}GtAp<44WFVkNl z=FLc6@wxV7-Nm_JIJc-~cDMzzrT~1260cAGCu%H(%(m23a7pB#2!sklPSMkwbJl i#Y>2Ho#Ja|kcrYKzoc^S-D3Y(E|3+qP_9@K7r4Kz8S8EU diff --git a/ofl/nanummyeongjo/NanumMyeongjo-ExtraBold.ttf b/ofl/nanummyeongjo/NanumMyeongjo-ExtraBold.ttf index 022426fe08a9e44f39f6a6ad926e7b6d413a542b..33be422089fe96c32e80125a2be6096189e413de 100644 GIT binary patch delta 694 zcmXBOUr1AN6bJD0ySsCn(@o3ioNG;8YB{~Lz#L_T1ok#%^-u`&vi2`Fz0D;HqJ<9@ zL}Bj11_eF15b|xq^`Mw$*n>uI3xWt@TP6#82%<*yT|Ip6x!>PC=lt%*>^ge~GYzpJ zB2o?xIh=`Si4n3*FA}jUgU$;B+owuavfa@m_c@%x(V+LsSG+$&|EN18N)dG_NmO`5 zRAF&XM$BwU-beJUysz6U`9hKQ>SIL37erj%Cr(H>ufhI#RHZL?-8;7Y=OVFKwu8EI z_xv95a@EIyA}%nZq1TTC<#zv7X?CrXDyRfCR6#XpKnpcc3;SR{)PWA_ zp#k*J2nJ{ZBOCw|90W5oLkqNm1r9+Qv_l6Rh9l4kR_My;vfaN5tY@xvRXELhGQ+FF mB@S_MO&CV}y(VZm7RYEegtuXiWSI}Wwv>ZWW@g%!=Kccp3fb2H delta 677 zcmXZXUr19?90%~lt?CQ;}SPv!i zU_KOBdsu=&!2}_w;70dlU@iOeGKd~r;PYH&D^~L2NiAXIH15;=%-SMwOG= z!HmFAPh!7&NLItw&fT~~Vs?gz@70Fm3E@`3N8+n5M7fMM64qSBfdy)%l_@k#6IzMm zA6t+Ad2`;L@$FE0vwyihi9r7F$rL`p>z30-46KQaQ^> zCQ}T*!y)j*>F-Kr#(QXxWO|sI|MXk`uvEirYfNBPW?z3aF)#Wsm^;6G+f+&>I_+vNZN diff --git a/ofl/nanummyeongjo/NanumMyeongjo-Regular.ttf b/ofl/nanummyeongjo/NanumMyeongjo-Regular.ttf index 92ed01277c0fc9c1eaa30cadbfe6f3eb3222e9f1..f2c0f3895183385499586df6fde485740d44b367 100644 GIT binary patch delta 714 zcmXBOT}V@590u_Jd-iFWE-NiP<#EokxwG0Bwb4e=g;F=ORuB~BVQpuKn+F}S=))kW zTVat&U6?m*bva{Y3LzLm8U%JR3QX2?YF1(&UUboO*2V9A&+|XedCxohVU!i2zozdq z5gFUs{ei(}gBQr2@)EJmw!qorGfjVuWKXA%-TuGJCb`PO(O!pXe8cqEbRR z^47S7_X+fcm=q12q*t>f&RKB5PNlmye&UJwHi?CPqKRRpC#2}V-*;0BtsC*dCt_GR z!;jdXcP}qhdVf)!76YQmY3Gc(=dX`XCXcbh23c)-J?}pd}^j0Lt ziHP@|^auI}`_GeWz)r;4e1S7Za&@abxgOp^_V@#h?#R?-*Pc(1IBCWYw#gk`@sBl9}exWYJQWM)>0Nn!%4{Z~t8H4{p`dS++E zFA=l%Jt>H9l$Q%SjfO}WU0hnYk6s)m9QOlKowYECsczK1gL>p*abGIgL>EvcGv?BXaJ|0&5Jn$YwEi>C0bdNIyfa7 nHHbsg;vvLe)1u0>VWRZ0&k5BzE1v39Q)gX@U)?w0QZ#=7^zr%s From a43bf7288bdd8532b7d0c7bd67e6862518e67a98 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Thu, 5 Dec 2024 17:04:27 +0000 Subject: [PATCH 2/2] Add hotfix script for posterity --- ofl/nanummyeongjo/hotfix-space.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 ofl/nanummyeongjo/hotfix-space.py diff --git a/ofl/nanummyeongjo/hotfix-space.py b/ofl/nanummyeongjo/hotfix-space.py new file mode 100644 index 00000000000..7989b8228d8 --- /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)