Auto change values

Primary tabs

5 posts / 0 new
Last post
mikej's picture
Offline
Joined: 7 Oct 2008 - 11:35am
Auto change values
0

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
Offline
Joined: 7 Oct 2008 - 11:35am
0

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 :-(

Rachel Roberts's picture
Offline
Joined: 21 Feb 2007 - 12:23pm
0

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()

Craig Eliason's picture
Offline
Joined: 19 Mar 2004 - 1:44pm
0

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
Offline
Joined: 7 Oct 2008 - 11:35am
0

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

Thanks guys!