diff --git a/README.md b/README.md index 1fa69cc..f289921 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # TT2020 +(Version 0.2: 21 November 2020) + ## [Download the font](https://ctrlcctrlv.github.io/TT2020/docs/download.html) ### [Why another typewriter font?](https://ctrlcctrlv.github.io/TT2020/docs/moreinfo.html) ♦ [How does it work?](https://ctrlcctrlv.github.io/TT2020/docs/moreinfo2.html) ♦ [Animated specimen](https://ctrlcctrlv.github.io/TT2020/docs/) ♦ [BoingBoing article](https://boingboing.net/2020/01/03/tt2020-an-old-timey-typewrite.html) diff --git a/build/version_0.2_patch.py b/build/version_0.2_patch.py new file mode 100755 index 0000000..9feed27 --- /dev/null +++ b/build/version_0.2_patch.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python3 +# I was in the middle of moving when this release was made and some vital build files were on another computer. +# Therefore, let's patch the binaries and call it a release. Users will never know as long as I don't fuck up. +# (Famous last words.) + +import fontTools.ttLib +import sys + +assert len(sys.argv) == 2, "No filename given" + +ttf=fontTools.ttLib.TTFont(file=sys.argv[1]) + +# SFNT revision +ttf["head"].fontRevision = 0.2 + +# `name` font version +padZeroes = lambda bs: b'\x00'.join([b.encode('ascii') for b in bs]) +names=ttf["name"].names +for n in names: + if n.nameID != 5: continue + n.string = n.string.replace(b'001', b'0.2').replace(padZeroes('001'), padZeroes('0.2')) \ + .replace(b'0.1', b'0.2').replace(padZeroes('0.1'), padZeroes('0.2')) +ttf["name"].names=names + +# `liga` ⇒ `dlig` (Closes #8) +if "GSUB" in ttf: + for fr in ttf["GSUB"].table.FeatureList.FeatureRecord: + fr.FeatureTag = 'dlig' if fr.FeatureTag == 'liga' else fr.FeatureTag + +ttf.save(sys.argv[1]) +print("Patched {}".format(sys.argv[1]), file=sys.stderr) diff --git a/dist/TT2020Base-Italic.ttf b/dist/TT2020Base-Italic.ttf index 241a450..10d8ad2 100644 Binary files a/dist/TT2020Base-Italic.ttf and b/dist/TT2020Base-Italic.ttf differ diff --git a/dist/TT2020Base-Regular.ttf b/dist/TT2020Base-Regular.ttf index b9b14ed..d3b3de6 100644 Binary files a/dist/TT2020Base-Regular.ttf and b/dist/TT2020Base-Regular.ttf differ diff --git a/dist/TT2020StyleB-Italic.ttf b/dist/TT2020StyleB-Italic.ttf index 6a83a3d..8b3a33e 100644 Binary files a/dist/TT2020StyleB-Italic.ttf and b/dist/TT2020StyleB-Italic.ttf differ diff --git a/dist/TT2020StyleB-Regular.ttf b/dist/TT2020StyleB-Regular.ttf index 6b528da..9b0515d 100644 Binary files a/dist/TT2020StyleB-Regular.ttf and b/dist/TT2020StyleB-Regular.ttf differ diff --git a/dist/TT2020StyleD-Italic.ttf b/dist/TT2020StyleD-Italic.ttf index 2730366..9ca1597 100644 Binary files a/dist/TT2020StyleD-Italic.ttf and b/dist/TT2020StyleD-Italic.ttf differ diff --git a/dist/TT2020StyleD-Regular.ttf b/dist/TT2020StyleD-Regular.ttf index c933d03..17383fe 100644 Binary files a/dist/TT2020StyleD-Regular.ttf and b/dist/TT2020StyleD-Regular.ttf differ diff --git a/dist/TT2020StyleE-Italic.ttf b/dist/TT2020StyleE-Italic.ttf index 482ea10..a403e25 100644 Binary files a/dist/TT2020StyleE-Italic.ttf and b/dist/TT2020StyleE-Italic.ttf differ diff --git a/dist/TT2020StyleE-Regular.ttf b/dist/TT2020StyleE-Regular.ttf index 45b72c3..6a7eb64 100644 Binary files a/dist/TT2020StyleE-Regular.ttf and b/dist/TT2020StyleE-Regular.ttf differ diff --git a/dist/TT2020StyleF-Regular-ASCII.ttf b/dist/TT2020StyleF-Regular-ASCII.ttf index f62f168..757eb0c 100644 Binary files a/dist/TT2020StyleF-Regular-ASCII.ttf and b/dist/TT2020StyleF-Regular-ASCII.ttf differ diff --git a/dist/TT2020StyleF-Regular.ttf b/dist/TT2020StyleF-Regular.ttf index cad7cfc..ac70aac 100644 Binary files a/dist/TT2020StyleF-Regular.ttf and b/dist/TT2020StyleF-Regular.ttf differ diff --git a/dist/TT2020StyleG-Regular-ASCII.ttf b/dist/TT2020StyleG-Regular-ASCII.ttf index 5d2b046..7cee018 100644 Binary files a/dist/TT2020StyleG-Regular-ASCII.ttf and b/dist/TT2020StyleG-Regular-ASCII.ttf differ diff --git a/dist/TT2020StyleG-Regular.ttf b/dist/TT2020StyleG-Regular.ttf index 614a374..74f0bba 100644 Binary files a/dist/TT2020StyleG-Regular.ttf and b/dist/TT2020StyleG-Regular.ttf differ