Auto change values

mikej's picture

I have a simple fontlab question - While finishing my kern font I realize that the values I used are a bit tight for my taste, so I want to add (+) all my kerning values +30 for example so they still well kerned but more space in equal proportions. Is there any easy way to do this? :S Hopefully yes!

Thanks!

mikej's picture

so for instance, if oTo is 30, want to automatically change to 60... I find a way to do it but isn't good.
Search and Replace in my OpenType Kern window... It isn't good cos I have lots of different values :-(

RachelR's picture

I'm not sure how you would do it in FL - I'm sure there must be a way.

This little script will add a value to all kerning pairs - be careful it will alter all your pairs.


from robofab.world import CurrentGlyph, CurrentFont
from robofab.interface.all.dialogs import AskString

f = CurrentFont()

kerning = f.kerning

kern = int(AskString('Increase/Decrease Kerning'))

kerning.add(kern)

if kern > 0:
print "kerning Decreased by"
print kern
elif kern < 0:
print "kerning Increased by"
print kern

f.update()

eliason's picture

Would it work to do this?
Tools > Action... > Metrics > Adjust metrics and kerning: Check kerning and enter the amount in the box.

mikej's picture

@RachelR - Seems a bit tricky but thanks!
@eliason - Will try! this will add or just change the value?

Thanks guys!

Syndicate content Syndicate content