aboutsummaryrefslogtreecommitdiffstats
path: root/equalize_sidebearings.py
blob: 8e56e9bd45eb99c2de14ae09ca946aa0118fad41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from mojo.events import addObserver
import vanilla

class EqualizeSidebearings(object):
    def __init__(self):
        addObserver(self, 'center', 'spaceCenterKeyUp')

    def center(self, info):
        if info['event'].characters() == 'a':
            info['glyph'].center()

EqualizeSidebearings()