fix italic angle; rewrite conversion script in python
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347
diff --git a/convert.py b/convert.py
new file mode 100755
index 0000000..63b15f9
--- /dev/null
+++ b/convert.py
@@ -0,0 +1,67 @@
+#!/usr/bin/env fontforge
+# -*- mode: python; coding: utf-8 -*-
+
+import fontforge
+import os
+from datetime import datetime
+
+now = datetime.now()
+os.environ['SOURCE_DATE_EPOCH'] = now.strftime('%s')
+if os.environ['USER'] == 'dembry' or os.environ['USER'] == 'dse':
+ os.environ['USER'] = 'Darren Embry'
+
+MACSTYLE_BOLD = 1
+MACSTYLE_ITALIC = 2
+MACSTYLE_UNDERLINE = 4
+MACSTYLE_OUTLINE = 8
+MACSTYLE_SHADOW = 16
+MACSTYLE_CONDENSED = 32
+MACSTYLE_EXTENDED = 64
+
+extensions = ['ttf', 'otf', 'svg', 'woff', 'woff2']
+
+def roman():
+ print('==> sources/cour.pfa <==')
+ font = fontforge.open('sources/cour.pfa')
+ font.fontname = 'IBMCourier'
+ font.fullname = 'IBM Courier'
+ font.familyname = 'IBM Courier'
+ font.italicangle = 0.0
+ font.save('sfd/IBM-Courier.sfd')
+ for extension in extensions:
+ font.generate('fonts/IBM-Courier.' + extension)
+def bold():
+ print('==> sources/courb.pfa <==')
+ font = fontforge.open('sources/courb.pfa')
+ font.fontname = 'IBMCourier-Bold'
+ font.fullname = 'IBM Courier Bold'
+ font.familyname = 'IBM Courier'
+ font.italicangle = 0.0
+ font.save('sfd/IBM-Courier-Bold.sfd')
+ for extension in extensions:
+ font.generate('fonts/IBM-Courier-Bold.' + extension)
+def italic():
+ print('==> sources/couri.pfa <==')
+ font = fontforge.open('sources/couri.pfa')
+ font.fontname = 'IBMCourier-Italic'
+ font.fullname = 'IBM Courier Italic'
+ font.familyname = 'IBM Courier'
+ font.italicangle = -12.0
+ font.save('sfd/IBM-Courier-Italic.sfd')
+ for extension in extensions:
+ font.generate('fonts/IBM-Courier-Italic.' + extension)
+def boldItalic():
+ print('==> sources/courbi.pfa <==')
+ font = fontforge.open('sources/courbi.pfa')
+ font.fontname = 'IBMCourier-BoldItalic'
+ font.fullname = 'IBM Courier Bold Italic'
+ font.familyname = 'IBM Courier'
+ font.italicangle = -12.0
+ font.save('sfd/IBM-Courier-Bold-Italic.sfd')
+ for extension in extensions:
+ font.generate('fonts/IBM-Courier-Bold-Italic.' + extension)
+
+roman()
+bold()
+italic()
+boldItalic()
diff --git a/convert.sh b/convert.sh
deleted file mode 100755
index 921f332..0000000
--- a/convert.sh
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/usr/bin/env bash
-set -o errexit
-set -o pipefail
-set -o nounset
-
-mkdir -p sfd
-
-export SOURCE_DATE_EPOCH="$(date +%s)"
-if [[ "$USER" = "dembry" ]] || [[ "$USER" = "dse" ]] ; then
- export USER="Darren Embry"
-fi
-
-ffconvert --font-name='IBMCourier' \
- --full-name='IBM Courier' \
- --family-name='IBM Courier' \
- --weight='Regular' \
- sources/cour.pfa \
- sfd/IBM-Courier.sfd \
- fonts/IBM-Courier.svg \
- fonts/IBM-Courier.ttf \
- fonts/IBM-Courier.otf \
- fonts/IBM-Courier.woff \
- fonts/IBM-Courier.woff2
-ffconvert --font-name='IBMCourier-Bold' \
- --full-name='IBM Courier Bold' \
- --family-name='IBM Courier' \
- --weight='Bold' \
- sources/courb.pfa \
- sfd/IBM-Courier-Bold.sfd \
- fonts/IBM-Courier-Bold.svg \
- fonts/IBM-Courier-Bold.ttf \
- fonts/IBM-Courier-Bold.otf \
- fonts/IBM-Courier-Bold.woff \
- fonts/IBM-Courier-Bold.woff2
-ffconvert --font-name='IBMCourier-Italic' \
- --full-name='IBM Courier Italic' \
- --family-name='IBM Courier' \
- --weight='Regular' \
- sources/couri.pfa \
- sfd/IBM-Courier-Italic.sfd \
- fonts/IBM-Courier-Italic.svg \
- fonts/IBM-Courier-Italic.ttf \
- fonts/IBM-Courier-Italic.otf \
- fonts/IBM-Courier-Italic.woff \
- fonts/IBM-Courier-Italic.woff2
-ffconvert --font-name='IBMCourier-BoldItalic' \
- --full-name='IBM Courier Bold Italic' \
- --family-name='IBM Courier' \
- --weight='Bold' \
- sources/courbi.pfa \
- sfd/IBM-Courier-Bold-Italic.sfd \
- fonts/IBM-Courier-Bold-Italic.svg \
- fonts/IBM-Courier-Bold-Italic.ttf \
- fonts/IBM-Courier-Bold-Italic.otf \
- fonts/IBM-Courier-Bold-Italic.woff \
- fonts/IBM-Courier-Bold-Italic.woff2
diff --git a/fonts/IBM-Courier-Bold-Italic.otf b/fonts/IBM-Courier-Bold-Italic.otf
old mode 100644
new mode 100755
index df0df31..8eff4ae
Binary files a/fonts/IBM-Courier-Bold-Italic.otf and b/fonts/IBM-Courier-Bold-Italic.otf differ
diff --git a/fonts/IBM-Courier-Bold-Italic.svg b/fonts/IBM-Courier-Bold-Italic.svg
index 973831b..442e14d 100644
--- a/fonts/IBM-Courier-Bold-Italic.svg
+++ b/fonts/IBM-Courier-Bold-Italic.svg
@@ -2,7 +2,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<metadata>
-Created by FontForge 20200314 at Fri Feb 14 00:00:00 1992
+Created by FontForge 20201107 at Tue Oct 12 20:13:38 2021
By Darren Embry
Copyright (c) IBM Corporation 1990,1991.
</metadata>
@@ -22,7 +22,7 @@ Copyright (c) IBM Corporation 1990,1991.
bbox="-48 -288 860 839"
underline-thickness="50"
underline-position="-100"
- slope="-16"
+ slope="-12"
stemh=" 85 "
stemv=" 87 "
unicode-range="U+0020-FB04"
diff --git a/fonts/IBM-Courier-Bold-Italic.ttf b/fonts/IBM-Courier-Bold-Italic.ttf
old mode 100644
new mode 100755
index 2c67fee..d99bbfa
Binary files a/fonts/IBM-Courier-Bold-Italic.ttf and b/fonts/IBM-Courier-Bold-Italic.ttf differ
diff --git a/fonts/IBM-Courier-Bold-Italic.woff b/fonts/IBM-Courier-Bold-Italic.woff
index bae3d4e..a5ab5e2 100644
Binary files a/fonts/IBM-Courier-Bold-Italic.woff and b/fonts/IBM-Courier-Bold-Italic.woff differ
diff --git a/fonts/IBM-Courier-Bold-Italic.woff2 b/fonts/IBM-Courier-Bold-Italic.woff2
index 4c7fec0..9fc744a 100644
Binary files a/fonts/IBM-Courier-Bold-Italic.woff2 and b/fonts/IBM-Courier-Bold-Italic.woff2 differ
diff --git a/fonts/IBM-Courier-Bold.otf b/fonts/IBM-Courier-Bold.otf
old mode 100644
new mode 100755
index 7ee9105..6740df5
Binary files a/fonts/IBM-Courier-Bold.otf and b/fonts/IBM-Courier-Bold.otf differ
diff --git a/fonts/IBM-Courier-Bold.svg b/fonts/IBM-Courier-Bold.svg
index 8074308..b18d4fa 100644
--- a/fonts/IBM-Courier-Bold.svg
+++ b/fonts/IBM-Courier-Bold.svg
@@ -2,7 +2,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<metadata>
-Created by FontForge 20200314 at Fri Feb 14 00:00:00 1992
+Created by FontForge 20201107 at Tue Oct 12 20:13:38 2021
By Darren Embry
Copyright (c) IBM Corporation 1990,1991.
</metadata>
diff --git a/fonts/IBM-Courier-Bold.ttf b/fonts/IBM-Courier-Bold.ttf
old mode 100644
new mode 100755
index de94e8c..7ce173a
Binary files a/fonts/IBM-Courier-Bold.ttf and b/fonts/IBM-Courier-Bold.ttf differ
diff --git a/fonts/IBM-Courier-Bold.woff b/fonts/IBM-Courier-Bold.woff
index b1bbbb9..f721bee 100644
Binary files a/fonts/IBM-Courier-Bold.woff and b/fonts/IBM-Courier-Bold.woff differ
diff --git a/fonts/IBM-Courier-Bold.woff2 b/fonts/IBM-Courier-Bold.woff2
index 8ad3745..4a89c13 100644
Binary files a/fonts/IBM-Courier-Bold.woff2 and b/fonts/IBM-Courier-Bold.woff2 differ
diff --git a/fonts/IBM-Courier-Italic.otf b/fonts/IBM-Courier-Italic.otf
old mode 100644
new mode 100755
index c546a7b..48beec3
Binary files a/fonts/IBM-Courier-Italic.otf and b/fonts/IBM-Courier-Italic.otf differ
diff --git a/fonts/IBM-Courier-Italic.svg b/fonts/IBM-Courier-Italic.svg
index bf5d698..597f62e 100644
--- a/fonts/IBM-Courier-Italic.svg
+++ b/fonts/IBM-Courier-Italic.svg
@@ -2,7 +2,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<metadata>
-Created by FontForge 20200314 at Fri Feb 14 00:00:00 1992
+Created by FontForge 20201107 at Tue Oct 12 20:13:38 2021
By Darren Embry
Copyright (c) IBM Corporation 1990,1991.
</metadata>
@@ -22,7 +22,7 @@ Copyright (c) IBM Corporation 1990,1991.
bbox="-48 -288 800 841"
underline-thickness="50"
underline-position="-100"
- slope="-16"
+ slope="-12"
stemh=" 47 "
stemv=" 50 "
unicode-range="U+0020-FB04"
diff --git a/fonts/IBM-Courier-Italic.ttf b/fonts/IBM-Courier-Italic.ttf
old mode 100644
new mode 100755
index 3bc58bb..c0ca11a
Binary files a/fonts/IBM-Courier-Italic.ttf and b/fonts/IBM-Courier-Italic.ttf differ
diff --git a/fonts/IBM-Courier-Italic.woff b/fonts/IBM-Courier-Italic.woff
index 91cd372..73b26bd 100644
Binary files a/fonts/IBM-Courier-Italic.woff and b/fonts/IBM-Courier-Italic.woff differ
diff --git a/fonts/IBM-Courier-Italic.woff2 b/fonts/IBM-Courier-Italic.woff2
index d3e1cc8..e78108b 100644
Binary files a/fonts/IBM-Courier-Italic.woff2 and b/fonts/IBM-Courier-Italic.woff2 differ
diff --git a/fonts/IBM-Courier.otf b/fonts/IBM-Courier.otf
old mode 100644
new mode 100755
index 3efd4c5..d29d68e
Binary files a/fonts/IBM-Courier.otf and b/fonts/IBM-Courier.otf differ
diff --git a/fonts/IBM-Courier.svg b/fonts/IBM-Courier.svg
index f4ef2fc..bb32788 100644
--- a/fonts/IBM-Courier.svg
+++ b/fonts/IBM-Courier.svg
@@ -2,7 +2,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<metadata>
-Created by FontForge 20200314 at Fri Feb 14 00:00:00 1992
+Created by FontForge 20201107 at Tue Oct 12 20:13:38 2021
By Darren Embry
Copyright (c) IBM Corporation 1990,1991.
</metadata>
diff --git a/fonts/IBM-Courier.ttf b/fonts/IBM-Courier.ttf
old mode 100644
new mode 100755
index 125eb3f..88b8416
Binary files a/fonts/IBM-Courier.ttf and b/fonts/IBM-Courier.ttf differ
diff --git a/fonts/IBM-Courier.woff b/fonts/IBM-Courier.woff
index be1fef6..a7ea86d 100644
Binary files a/fonts/IBM-Courier.woff and b/fonts/IBM-Courier.woff differ
diff --git a/fonts/IBM-Courier.woff2 b/fonts/IBM-Courier.woff2
index 58cfafd..fe521ad 100644
Binary files a/fonts/IBM-Courier.woff2 and b/fonts/IBM-Courier.woff2 differ
diff --git a/sfd/IBM-Courier-Bold-Italic.sfd b/sfd/IBM-Courier-Bold-Italic.sfd
index 9b1138a..4461e83 100755
--- a/sfd/IBM-Courier-Bold-Italic.sfd
+++ b/sfd/IBM-Courier-Bold-Italic.sfd
@@ -5,7 +5,7 @@ FamilyName: IBM Courier
Weight: Bold
Copyright: Copyright (c) IBM Corporation 1990,1991.
Version: 001.003
-ItalicAngle: -16
+ItalicAngle: -12
UnderlinePosition: -100
UnderlineWidth: 50
Ascent: 800
@@ -18,8 +18,8 @@ UniqueID: 263789
OS2Version: 0
OS2_WeightWidthSlopeOnly: 0
OS2_UseTypoMetrics: 0
-CreationTime: 1634098383
-ModificationTime: 1634098383
+CreationTime: 1634084018
+ModificationTime: 1634084018
OS2TypoAscent: 0
OS2TypoAOffset: 1
OS2TypoDescent: 0
diff --git a/sfd/IBM-Courier-Bold.sfd b/sfd/IBM-Courier-Bold.sfd
index 09b90f6..5fb5390 100755
--- a/sfd/IBM-Courier-Bold.sfd
+++ b/sfd/IBM-Courier-Bold.sfd
@@ -18,8 +18,8 @@ UniqueID: 263788
OS2Version: 0
OS2_WeightWidthSlopeOnly: 0
OS2_UseTypoMetrics: 0
-CreationTime: 1634098383
-ModificationTime: 1634098383
+CreationTime: 1634084018
+ModificationTime: 1634084018
OS2TypoAscent: 0
OS2TypoAOffset: 1
OS2TypoDescent: 0
diff --git a/sfd/IBM-Courier-Italic.sfd b/sfd/IBM-Courier-Italic.sfd
index dbea98a..14cfeca 100755
--- a/sfd/IBM-Courier-Italic.sfd
+++ b/sfd/IBM-Courier-Italic.sfd
@@ -5,7 +5,7 @@ FamilyName: IBM Courier
Weight: Regular
Copyright: Copyright (c) IBM Corporation 1990,1991.
Version: 001.003
-ItalicAngle: -16
+ItalicAngle: -12
UnderlinePosition: -100
UnderlineWidth: 50
Ascent: 800
@@ -18,8 +18,8 @@ UniqueID: 263787
OS2Version: 0
OS2_WeightWidthSlopeOnly: 0
OS2_UseTypoMetrics: 0
-CreationTime: 1634098383
-ModificationTime: 1634098383
+CreationTime: 1634084018
+ModificationTime: 1634084018
OS2TypoAscent: 0
OS2TypoAOffset: 1
OS2TypoDescent: 0
diff --git a/sfd/IBM-Courier.sfd b/sfd/IBM-Courier.sfd
index 983c9e6..0b8817a 100755
--- a/sfd/IBM-Courier.sfd
+++ b/sfd/IBM-Courier.sfd
@@ -18,8 +18,8 @@ UniqueID: 263786
OS2Version: 0
OS2_WeightWidthSlopeOnly: 0
OS2_UseTypoMetrics: 0
-CreationTime: 1634098383
-ModificationTime: 1634098383
+CreationTime: 1634084018
+ModificationTime: 1634084018
OS2TypoAscent: 0
OS2TypoAOffset: 1
OS2TypoDescent: 0