chiark / gitweb /
Fix left and right edge hints at non-default widths
authorBen Harris <bjh21@bjh21.me.uk>
Tue, 19 Nov 2024 23:27:05 +0000 (23:27 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Tue, 19 Nov 2024 23:40:00 +0000 (23:40 +0000)
commitd4d05a4a73169b7ad3d836f334c7381dae33e0b5
tree0a84fbac912f78a76a0ca566ef1b8f48e0a2d607
parent3434aa062ff488327ff8fe519c8a63e41333d885
Fix left and right edge hints at non-default widths

The magic numbers -21 and -20 shouldn't be scaled when the width of the
characters changes.  The easiest way to fix this is to switch to
calculating the hints in actual font units.  Only now of course that
will get bold fonts wrong...
bedstead.c