Skip to content

Instantly share code, notes, and snippets.

@davelab6
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davelab6/eb6e5468ba4f69723b9e to your computer and use it in GitHub Desktop.
Save davelab6/eb6e5468ba4f69723b9e to your computer and use it in GitHub Desktop.
$ fontbakery-fix-vertical-metrics.py Cormorant*ttf;
$ cd "~/src/github.com/CatharsisFonts/Cormorant/TrueType Font Files";
$ ls -l;
total 11944
-rw-r--r-- 1 dcrossland restricted 253964 22 Aug 12:10 Cormorant-Bold.ttf
-rw-r--r-- 1 dcrossland restricted 185304 22 Aug 12:10 Cormorant-BoldItalic.ttf
-rw-r--r-- 1 dcrossland restricted 244904 22 Aug 12:10 Cormorant-InfantBold.ttf
-rw-r--r-- 1 dcrossland restricted 240704 22 Aug 12:10 Cormorant-InfantLight.ttf
-rw-r--r-- 1 dcrossland restricted 242408 22 Aug 12:10 Cormorant-InfantMedium.ttf
-rw-r--r-- 1 dcrossland restricted 242704 22 Aug 12:10 Cormorant-InfantRegular.ttf
-rw-r--r-- 1 dcrossland restricted 245872 22 Aug 12:10 Cormorant-InfantSemibold.ttf
-rw-r--r-- 1 dcrossland restricted 249048 22 Aug 12:10 Cormorant-Light.ttf
-rw-r--r-- 1 dcrossland restricted 180056 22 Aug 12:10 Cormorant-LightItalic.ttf
-rw-r--r-- 1 dcrossland restricted 251132 22 Aug 12:10 Cormorant-Medium.ttf
-rw-r--r-- 1 dcrossland restricted 187676 22 Aug 12:10 Cormorant-MediumItalic.ttf
-rw-r--r-- 1 dcrossland restricted 251036 22 Aug 12:10 Cormorant-Regular.ttf
-rw-r--r-- 1 dcrossland restricted 180004 22 Aug 12:10 Cormorant-RegularItalic.ttf
-rw-r--r-- 1 dcrossland restricted 177896 22 Aug 12:10 Cormorant-SCBold.ttf
-rw-r--r-- 1 dcrossland restricted 174528 22 Aug 12:10 Cormorant-SCLight.ttf
-rw-r--r-- 1 dcrossland restricted 175328 22 Aug 12:10 Cormorant-SCMedium.ttf
-rw-r--r-- 1 dcrossland restricted 175484 22 Aug 12:10 Cormorant-SCRegular.ttf
-rw-r--r-- 1 dcrossland restricted 175684 22 Aug 12:10 Cormorant-SCSemibold.ttf
-rw-r--r-- 1 dcrossland restricted 254364 22 Aug 12:10 Cormorant-Semibold.ttf
-rw-r--r-- 1 dcrossland restricted 189620 22 Aug 12:10 Cormorant-SemiboldItalic.ttf
-rw-r--r-- 1 dcrossland restricted 169704 22 Aug 12:10 Cormorant-UnicaseBold.ttf
-rw-r--r-- 1 dcrossland restricted 165896 22 Aug 12:10 Cormorant-UnicaseLight.ttf
-rw-r--r-- 1 dcrossland restricted 166808 22 Aug 12:10 Cormorant-UnicaseMedium.ttf
-rw-r--r-- 1 dcrossland restricted 166868 22 Aug 12:10 Cormorant-UnicaseRegular.ttf
-rw-r--r-- 1 dcrossland restricted 167400 22 Aug 12:10 Cormorant-UnicaseSemibold.ttf
-rw-r--r-- 1 dcrossland restricted 184948 22 Aug 12:10 Cormorant-UprightBold.ttf
-rw-r--r-- 1 dcrossland restricted 180628 22 Aug 12:10 Cormorant-UprightLight.ttf
-rw-r--r-- 1 dcrossland restricted 190168 22 Aug 12:10 Cormorant-UprightMedium.ttf
-rw-r--r-- 1 dcrossland restricted 184904 22 Aug 12:10 Cormorant-UprightRegular.ttf
-rw-r--r-- 1 dcrossland restricted 191020 22 Aug 12:10 Cormorant-UprightSemibold.ttf
-rw-r--r-- 1 dcrossland restricted 4469 22 Aug 12:10 OFL.txt
$ fontbakery-fix-vertical-metrics.py *ttf
WARNING: Inconsistent OS/2.usWinAscent hhea.ascent
WARNING: Cormorant-Bold.ttf has NOT even heights
WARNING: Cormorant-InfantBold.ttf has NOT even heights
WARNING: Cormorant-InfantLight.ttf has NOT even heights
WARNING: Cormorant-InfantMedium.ttf has NOT even heights
WARNING: Cormorant-InfantRegular.ttf has NOT even heights
WARNING: Cormorant-InfantSemibold.ttf has NOT even heights
WARNING: Cormorant-Light.ttf has NOT even heights
WARNING: Cormorant-Medium.ttf has NOT even heights
WARNING: Cormorant-Regular.ttf has NOT even heights
WARNING: Cormorant-SCBold.ttf has NOT even heights
WARNING: Cormorant-SCLight.ttf has NOT even heights
WARNING: Cormorant-SCMedium.ttf has NOT even heights
WARNING: Cormorant-SCRegular.ttf has NOT even heights
WARNING: Cormorant-SCSemibold.ttf has NOT even heights
WARNING: Cormorant-Semibold.ttf has NOT even heights
WARNING: Cormorant-UnicaseBold.ttf has NOT even heights
WARNING: Cormorant-UnicaseLight.ttf has NOT even heights
WARNING: Cormorant-UnicaseMedium.ttf has NOT even heights
WARNING: Cormorant-UnicaseRegular.ttf has NOT even heights
WARNING: Cormorant-UnicaseSemibold.ttf has NOT even heights
WARNING: Cormorant-UprightBold.ttf has NOT even heights
WARNING: Cormorant-UprightLight.ttf has NOT even heights
WARNING: Cormorant-UprightMedium.ttf has NOT even heights
WARNING: Cormorant-UprightRegular.ttf has NOT even heights
WARNING: Cormorant-UprightSemibold.ttf has NOT even heights
Parameter Cormorant-Bold.ttf Cormorant-BoldItalic.ttf Cormorant-InfantBold.ttf Cormorant-InfantLight.ttf Cormorant-InfantMedium.ttf Cormorant-InfantRegular.ttf Cormorant-InfantSemibold.ttf Cormorant-Light.ttf Cormorant-LightItalic.ttf Cormorant-Medium.ttf Cormorant-MediumItalic.ttf Cormorant-Regular.ttf Cormorant-RegularItalic.ttf Cormorant-SCBold.ttf Cormorant-SCLight.ttf Cormorant-SCMedium.ttf Cormorant-SCRegular.ttf Cormorant-SCSemibold.ttf Cormorant-Semibold.ttf Cormorant-SemiboldItalic.ttf Cormorant-UnicaseBold.ttf Cormorant-UnicaseLight.ttf Cormorant-UnicaseMedium.ttf Cormorant-UnicaseRegular.ttf Cormorant-UnicaseSemibold.ttf Cormorant-UprightBold.ttf Cormorant-UprightLight.ttf Cormorant-UprightMedium.ttf Cormorant-UprightRegular.ttf Cormorant-UprightSemibold.ttf
ymax 802 793 802 790 795 792 798 790 770 795 780 792 774 802 790 795 792 798 798 785 802 790 795 792 798 793 770 780 774 785
hhea.ascent 870 960 870 870 870 870 870 870 960 870 960 870 960 870 870 870 870 870 870 960 870 870 870 870 870 870 870 870 870 870
OS/2.sTypoAscender 620 620 620 620 620 620 620 620 620 620 620 620 620 620 620 620 620 620 620 620 620 620 620 620 620 620 620 620 620 620
OS/2.usWinAscent 870 960 870 870 870 870 870 870 960 870 960 870 960 870 870 870 870 870 870 960 870 870 870 870 870 870 870 870 870 870
ymin -242 -240 -242 -242 -242 -242 -242 -242 -240 -242 -240 -242 -240 -242 -242 -242 -242 -242 -242 -240 -242 -242 -242 -242 -242 -240 -240 -240 -240 -240
hhea.descent -240 -240 -240 -240 -240 -240 -240 -240 -240 -240 -240 -240 -240 -240 -240 -240 -240 -240 -240 -240 -240 -240 -240 -240 -240 -240 -240 -240 -240 -240
OS/2.sTypoDescender -235 -235 -235 -235 -235 -235 -235 -235 -235 -235 -235 -235 -235 -235 -235 -235 -235 -235 -235 -235 -235 -235 -235 -235 -235 -235 -235 -235 -235 -235
OS/2.usWinDescent 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
hhea.lineGap 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS/2.sTypoLineGap 345 345 345 345 345 345 345 345 345 345 345 345 345 345 345 345 345 345 345 345 345 345 345 345 345 345 345 345 345 345
hhea total 1110 1200 1110 1110 1110 1110 1110 1110 1200 1110 1200 1110 1200 1110 1110 1110 1110 1110 1110 1200 1110 1110 1110 1110 1110 1110 1110 1110 1110 1110
typo total 1200 1200 1200 1200 1200 1200 1200 1200 1200 1200 1200 1200 1200 1200 1200 1200 1200 1200 1200 1200 1200 1200 1200 1200 1200 1200 1200 1200 1200 1200
win total 1110 1200 1110 1110 1110 1110 1110 1110 1200 1110 1200 1110 1200 1110 1110 1110 1110 1110 1110 1200 1110 1110 1110 1110 1110 1110 1110 1110 1110 1110
UPM:Heights 1000:1044 1000:1033 1000:1044 1000:1032 1000:1037 1000:1034 1000:1040 1000:1032 1000:1010 1000:1037 1000:1020 1000:1034 1000:1014 1000:1044 1000:1032 1000:1037 1000:1034 1000:1040 1000:1040 1000:1025 1000:1044 1000:1032 1000:1037 1000:1034 1000:1040 1000:1033 1000:1010 1000:1020 1000:1014 1000:1025
UPM:Heights % 104 % 103 % 104 % 103 % 103 % 103 % 104 % 103 % 101 % 103 % 102 % 103 % 101 % 104 % 103 % 103 % 103 % 104 % 104 % 102 % 104 % 103 % 103 % 103 % 104 % 103 % 101 % 102 % 101 % 102 %
Low Glyphs
Cormorant-Bold.ttf: jacute ij longs_longs_j.liga.ss02 eng f_j.liga longs_j.liga.ss02 longs_longs_j.liga longs_j.liga uni0237 acute_ij.liga jcircumflex iacute_j.loclNLD f_f_j.liga j
Cormorant-InfantBold.ttf: jacute ij longs_longs_j.liga.ss02 eng f_j.liga longs_j.liga.ss02 longs_longs_j.liga longs_j.liga uni0237 acute_ij.liga jcircumflex iacute_j.loclNLD f_f_j.liga j
Cormorant-InfantLight.ttf: jacute ij uni0237 acute_ij.liga jcircumflex iacute_j.loclNLD j
Cormorant-InfantMedium.ttf: jacute ij uni0237 acute_ij.liga jcircumflex iacute_j.loclNLD j
Cormorant-InfantRegular.ttf: jacute ij uni0237 acute_ij.liga jcircumflex iacute_j.loclNLD j
Cormorant-InfantSemibold.ttf: jacute ij uni0237 acute_ij.liga jcircumflex iacute_j.loclNLD j
Cormorant-Light.ttf: jacute ij uni0237 acute_ij.liga jcircumflex iacute_j.loclNLD j
Cormorant-Medium.ttf: jacute ij uni0237 acute_ij.liga jcircumflex iacute_j.loclNLD j
Cormorant-Regular.ttf: jacute ij uni0237 acute_ij.liga jcircumflex iacute_j.loclNLD j
Cormorant-SCBold.ttf: jacute longs_longs_j.liga.ss02 uni0237 longs_j.liga.ss02
Cormorant-SCLight.ttf: jacute uni0237
Cormorant-SCMedium.ttf: jacute uni0237
Cormorant-SCRegular.ttf: jacute uni0237
Cormorant-SCSemibold.ttf: jacute uni0237
Cormorant-Semibold.ttf: jacute ij uni0237 acute_ij.liga jcircumflex iacute_j.loclNLD j
Cormorant-UnicaseBold.ttf: jacute longs_longs_j.liga.ss02 uni0237 longs_j.liga.ss02
Cormorant-UnicaseLight.ttf: jacute uni0237
Cormorant-UnicaseMedium.ttf: jacute uni0237
Cormorant-UnicaseRegular.ttf: jacute uni0237
Cormorant-UnicaseSemibold.ttf: jacute uni0237
WARNING: Inconsistent hhea.ascent: Cormorant-Bold.ttf, Cormorant-InfantBold.ttf, Cormorant-InfantLight.ttf, Cormorant-InfantMedium.ttf, Cormorant-InfantRegular.ttf, Cormorant-InfantSemibold.ttf, Cormorant-Light.ttf, Cormorant-Medium.ttf, Cormorant-Regular.ttf, Cormorant-SCBold.ttf, Cormorant-SCLight.ttf, Cormorant-SCMedium.ttf, Cormorant-SCRegular.ttf, Cormorant-SCSemibold.ttf, Cormorant-Semibold.ttf, Cormorant-UnicaseBold.ttf, Cormorant-UnicaseLight.ttf, Cormorant-UnicaseMedium.ttf, Cormorant-UnicaseRegular.ttf, Cormorant-UnicaseSemibold.ttf, Cormorant-UprightBold.ttf, Cormorant-UprightLight.ttf, Cormorant-UprightMedium.ttf, Cormorant-UprightRegular.ttf, Cormorant-UprightSemibold.ttf
WARNING: Inconsistent OS/2.usWinAscent: Cormorant-Bold.ttf, Cormorant-InfantBold.ttf, Cormorant-InfantLight.ttf, Cormorant-InfantMedium.ttf, Cormorant-InfantRegular.ttf, Cormorant-InfantSemibold.ttf, Cormorant-Light.ttf, Cormorant-Medium.ttf, Cormorant-Regular.ttf, Cormorant-SCBold.ttf, Cormorant-SCLight.ttf, Cormorant-SCMedium.ttf, Cormorant-SCRegular.ttf, Cormorant-SCSemibold.ttf, Cormorant-Semibold.ttf, Cormorant-UnicaseBold.ttf, Cormorant-UnicaseLight.ttf, Cormorant-UnicaseMedium.ttf, Cormorant-UnicaseRegular.ttf, Cormorant-UnicaseSemibold.ttf, Cormorant-UprightBold.ttf, Cormorant-UprightLight.ttf, Cormorant-UprightMedium.ttf, Cormorant-UprightRegular.ttf, Cormorant-UprightSemibold.ttf
$ rm *fix;
$ rename s/ttf.fix/ttf/g *;
$ fontbakery-fix-vertical-metrics.py *ttf;
Parameter Cormorant-Bold.ttf Cormorant-BoldItalic.ttf Cormorant-InfantBold.ttf Cormorant-InfantLight.ttf Cormorant-InfantMedium.ttf Cormorant-InfantRegular.ttf Cormorant-InfantSemibold.ttf Cormorant-Light.ttf Cormorant-LightItalic.ttf Cormorant-Medium.ttf Cormorant-MediumItalic.ttf Cormorant-Regular.ttf Cormorant-RegularItalic.ttf Cormorant-SCBold.ttf Cormorant-SCLight.ttf Cormorant-SCMedium.ttf Cormorant-SCRegular.ttf Cormorant-SCSemibold.ttf Cormorant-Semibold.ttf Cormorant-SemiboldItalic.ttf Cormorant-UnicaseBold.ttf Cormorant-UnicaseLight.ttf Cormorant-UnicaseMedium.ttf Cormorant-UnicaseRegular.ttf Cormorant-UnicaseSemibold.ttf Cormorant-UprightBold.ttf Cormorant-UprightLight.ttf Cormorant-UprightMedium.ttf Cormorant-UprightRegular.ttf Cormorant-UprightSemibold.ttf
ymax 802 793 802 790 795 792 798 790 770 795 780 792 774 802 790 795 792 798 798 785 802 790 795 792 798 793 770 780 774 785
hhea.ascent 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802
OS/2.sTypoAscender 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802
OS/2.usWinAscent 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802 802
ymin -242 -240 -242 -242 -242 -242 -242 -242 -240 -242 -240 -242 -240 -242 -242 -242 -242 -242 -242 -240 -242 -242 -242 -242 -242 -240 -240 -240 -240 -240
hhea.descent -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242
OS/2.sTypoDescender -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242 -242
OS/2.usWinDescent 242 242 242 242 242 242 242 242 242 242 242 242 242 242 242 242 242 242 242 242 242 242 242 242 242 242 242 242 242 242
hhea.lineGap 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS/2.sTypoLineGap 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
hhea total 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044
typo total 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044
win total 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044 1044
UPM:Heights 1000:1044 1000:1033 1000:1044 1000:1032 1000:1037 1000:1034 1000:1040 1000:1032 1000:1010 1000:1037 1000:1020 1000:1034 1000:1014 1000:1044 1000:1032 1000:1037 1000:1034 1000:1040 1000:1040 1000:1025 1000:1044 1000:1032 1000:1037 1000:1034 1000:1040 1000:1033 1000:1010 1000:1020 1000:1014 1000:1025
UPM:Heights % 104 % 103 % 104 % 103 % 103 % 103 % 104 % 103 % 101 % 103 % 102 % 103 % 101 % 104 % 103 % 103 % 103 % 104 % 104 % 102 % 104 % 103 % 103 % 103 % 104 % 103 % 101 % 102 % 101 % 102 %
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment