mirror of
https://bjh21.me.uk/bedstead/.git
synced 2026-07-30 15:33:25 -04:00
When stroking a font, adjust the BlueValues accordingly.
This commit is contained in:
parent
049d92d5f2
commit
43c895f9ac
@ -22,6 +22,10 @@ class Stroker(object):
|
||||
f.fullname = self.fullname
|
||||
f.private['StdHW'] = self.nibheight
|
||||
f.private['StdVW'] = self.nibwidth
|
||||
def adjustblue(y): return y - 100 + self.nibheight
|
||||
bv = list(f.private['BlueValues'])
|
||||
bv[1:] = map(adjustblue, bv[1:])
|
||||
f.private['BlueValues'] = tuple(bv)
|
||||
f.uwidth = self.nibheight
|
||||
f.os2_weight = self.ttfweight
|
||||
f.weight = self.weight
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user