Skip to content

Commit bfd51a1

Browse files
committed
Add kerning of r*
1 parent 5a6462d commit bfd51a1

8 files changed

Lines changed: 11 additions & 6 deletions

File tree

xkcd-script/font/xkcd-script.otf

1.14 KB
Binary file not shown.

xkcd-script/font/xkcd-script.sfd

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

xkcd-script/font/xkcd-script.ttf

1.14 KB
Binary file not shown.

xkcd-script/font/xkcd-script.woff

1016 Bytes
Binary file not shown.

xkcd-script/generator/pt7_font_properties.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ def getkern(left, right):
128128
kern(90+a, set(lower) - {'i', 'j'}, ['x'], onlyCloser=True, damper=0.75) # kx is fine, fx is tight
129129
kern(80+a, ['x'], set(lower) - {'i', 'j'}, onlyCloser=True, damper=0.75)
130130
kern(100+a, ['f', 't'], set(lower) - {'i', 'j'}, onlyCloser=True, damper=0.75) # oveerwrite fx
131+
# For some reason, autoKern malfunctions on the left side of 'e', so the kerning value of 'o' is reused.
132+
kern(0, ['r'], ['e', 'o'])
133+
diff_ro_re = getkern('r', 'o') - getkern('r', 'e')
134+
kern(100+a, ['r'], set(lower) - {'i', 'j'}, onlyCloser=True, damper=0.75)
135+
kern(100+a + diff_ro_re, ['r'], ['e'], onlyCloser=True, damper=0.75)
131136
# including uppercase
132137
# Set *Y altogether first: CY, OY, etc. will have appropriate values set in the latter part.
133138
kern(105, roman, ['Y', 'T'], onlyCloser=True, damper=0.75)
-11 Bytes
Loading

xkcd-script/samples/ipsum.png

11 Bytes
Loading

xkcd-script/samples/kerning.png

63 Bytes
Loading

0 commit comments

Comments
 (0)