Skip to content

Commit fd32443

Browse files
committed
Add kerning of P*
1 parent b079c27 commit fd32443

6 files changed

Lines changed: 4 additions & 0 deletions

File tree

xkcd-script/font/xkcd-script.otf

344 Bytes
Binary file not shown.

xkcd-script/font/xkcd-script.sfd

Lines changed: 1 addition & 0 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

344 Bytes
Binary file not shown.

xkcd-script/font/xkcd-script.woff

232 Bytes
Binary file not shown.

xkcd-script/generator/pt7_font_properties.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ def getkern(left, right):
147147
kern(60, ['C'], set(roman) - {'j'}, onlyCloser=True, damper=0.75) # keep CK≈-15
148148
kern(25, ['C'], ['V'], onlyCloser=True, touch=True)
149149
kern(60, ['O'], set(roman) - {'j'}, onlyCloser=True, damper=0.75) # loosen
150+
kern(100, ['P'], set(roman) - {'j'}, onlyCloser=True, damper=0.75)
151+
diff_Po_Pe = getkern('P', 'o') - getkern('P', 'e')
152+
kern(100 + int(diff_Po_Pe / 0.75), ['P'], ['e'], onlyCloser=True, damper=0.75)
150153

151154

152155
autokern(font)

xkcd-script/samples/kerning.png

53 Bytes
Loading

0 commit comments

Comments
 (0)