# Feature request: kerning gesture

**URL:** <https://forum.glyphsapp.com/t/feature-request-kerning-gesture/18490>\
**Category:** Uncategorized\
**Created:** [April 2, 2021, 12:39pm UTC](https://forum.glyphsapp.com/t/feature-request-kerning-gesture/18490 "2021-04-02T12:39:39Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tosche](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/tosche/32/412_2.png) [@Tosche](https://forum.glyphsapp.com/u/Tosche)\
**Post date:** [April 2, 2021, 12:39pm UTC](https://forum.glyphsapp.com/t/feature-request-kerning-gesture/18490/1 "2021-04-02T12:39:39Z")

</div>

One of the things I do not enjoy in kerning is the fact that you need to press four keys to move by +10 or -10 units. I am trying to make my own physical device using rotary encoder (a dial with no minimum or maximum stop), also but think Glyphs could offer better and more finger-friendly commands in the Text tool:

- Touch Bar slider (similar to volume or brightness control, except value-setting relative)
- Shift + horizontal scroll
- Shift + drag (maybe not a good idea since the mouse position doesn’t always stay at the letter position, depending on the text content)

And it will in/decrease the value in increment of 5 or 10, but not 1 (I just think that’s cleaner that way).

Does anyone like the idea?

---

<div class="post-metadata">

**Author:** ![FlorianPircher](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/florianpircher/32/30457_2.png) [@FlorianPircher](https://forum.glyphsapp.com/u/FlorianPircher)\
**Post date:** [April 2, 2021, 12:53pm UTC](https://forum.glyphsapp.com/t/feature-request-kerning-gesture/18490/2 "2021-04-02T12:53:18Z")

</div>

> [@Tosche](#):
>
> One of the things I do not enjoy in kerning is the fact that you need to press four keys to move by +10 or -10 units.

There are options:

```auto
Glyphs.defaults["GSKerningIncrementHigh"] = 20
Glyphs.defaults["GSKerningIncrementLow"] = 5

```

> [@Tosche](#):
>
> Touch Bar slider

I am not sure the Touch Bar will be with us for much longer.

* * *

Kerning values can be set from the API. I would connect the controller via the API, not relay its inputs to the standard Glyphs shortcuts.

---

<div class="post-metadata">

**Author:** ![Tosche](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/tosche/32/412_2.png) [@Tosche](https://forum.glyphsapp.com/u/Tosche)\
**Post date:** [April 2, 2021, 12:59pm UTC](https://forum.glyphsapp.com/t/feature-request-kerning-gesture/18490/3 "2021-04-02T12:59:17Z")

</div>

Problem is the number of keys involved in the command you need to do a lot, not necessarily what it does. All you are doing is to increase and decrease a value, so it shouldn’t be this unintuitive.

And what about the Touch Bar? Is that your opinion or informed prediction? I for one love it much more than F keys. (preference aside, I know it’s not as universal as gestures like shift+scroll, which would be my pick)

---

<div class="post-metadata">

**Author:** ![FlorianPircher](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/florianpircher/32/30457_2.png) [@FlorianPircher](https://forum.glyphsapp.com/u/FlorianPircher)\
**Post date:** [April 2, 2021, 1:03pm UTC](https://forum.glyphsapp.com/t/feature-request-kerning-gesture/18490/4 "2021-04-02T13:03:22Z")

</div>

> [@Tosche](#):
>
> Problem is the number of keys involved in the command you need to do a lot, not necessarily what it does. All you are doing is to increase and decrease a value, so it shouldn’t be this unintuitive.

The Edit view already has lots of shortcuts, so it’s difficult to use less keys without conflicting with existing functionality. This could be solved by having a dedicated Kerning tool where simpler shortcuts would be usable.

> [@Tosche](#):
>
> And what about the Touch Bar? Is that your opinion or informed prediction? I for one love it much more than F keys. (preference aside, I know it’s not as universal as gestures like shift+scroll, which would be my pick)

I just have the control strip expanded at all time, but I like the physical keys on my external keyboard much better. The Touch Bar API never evolved, so Apple does not seem particularly dedicated.

---

<div class="post-metadata">

**Author:** ![alexs](https://forum.glyphsapp.com/letter_avatar_proxy/v4/letter/a/2acd7d/32.png) [@alexs](https://forum.glyphsapp.com/u/alexs)\
**Post date:** [April 2, 2021, 1:03pm UTC](https://forum.glyphsapp.com/t/feature-request-kerning-gesture/18490/5 "2021-04-02T13:03:23Z")

</div>

One can do all of that with something like Better Touch Tool. But often times what sounds good in theory causes some unexpected problems (precision?)

---

<div class="post-metadata">

**Author:** ![Tosche](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/tosche/32/412_2.png) [@Tosche](https://forum.glyphsapp.com/u/Tosche)\
**Post date:** [April 2, 2021, 1:23pm UTC](https://forum.glyphsapp.com/t/feature-request-kerning-gesture/18490/6 "2021-04-02T13:23:32Z")

</div>

> [@FlorianPircher](#):
>
> Kerning values can be set from the API. I would connect the controller via the API, not relay its inputs to the standard Glyphs shortcuts.

Do you mean setKerningForPair()? For my rotary encoder project, I want my input to register fast, and I want to learn if there is a better alternative (including Objective-C).

> [@FlorianPircher](#):
>
> The Touch Bar API never evolved, so Apple does not seem particularly dedicated.

Hmm, I even considered finally learning Objective-C after learning the existence of the API…

---

<div class="post-metadata">

**Author:** ![FlorianPircher](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/florianpircher/32/30457_2.png) [@FlorianPircher](https://forum.glyphsapp.com/u/FlorianPircher)\
**Post date:** [April 2, 2021, 1:32pm UTC](https://forum.glyphsapp.com/t/feature-request-kerning-gesture/18490/7 "2021-04-02T13:32:36Z")

</div>

> [@Tosche](#):
>
> learn if there is a better alternative

Is `setKerningForPair` too slow for you?

---

<div class="post-metadata">

**Author:** ![Tosche](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/tosche/32/412_2.png) [@Tosche](https://forum.glyphsapp.com/u/Tosche)\
**Post date:** [April 2, 2021, 1:45pm UTC](https://forum.glyphsapp.com/t/feature-request-kerning-gesture/18490/8 "2021-04-02T13:45:40Z")

</div>

I think it’s fine now, it’s just I wanted if there was something better. Also setKerningForPair is called from GSFont and I cannot undo it (I tried setting a undo group it from a glyph, but it doesn’t register).

---

<div class="post-metadata">

**Author:** ![GeorgSeifert](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/georgseifert/32/259_2.png) [@GeorgSeifert](https://forum.glyphsapp.com/u/GeorgSeifert)\
**Post date:** [April 2, 2021, 8:42pm UTC](https://forum.glyphsapp.com/t/feature-request-kerning-gesture/18490/9 "2021-04-02T20:42:21Z")

</div>

There are methods on the layer:

```python
value = layer.previousKerningForLayer_direction_(previousLayer, direction)
layer.setPreviousKerning_forLayer_direction_(value, previousLayer, direction)

value = layer.nextKerningForLayer_direction_(nextLayer, direction)
layer.setNextKerning_forLayer_direction_(value, nextLayer, direction)

```

direction = LTR|RTL  
Those will trigger undo.

---

<div class="post-metadata">

**Author:** ![alexs](https://forum.glyphsapp.com/letter_avatar_proxy/v4/letter/a/2acd7d/32.png) [@alexs](https://forum.glyphsapp.com/u/alexs)\
**Post date:** [February 6, 2026, 12:47am UTC](https://forum.glyphsapp.com/t/feature-request-kerning-gesture/18490/10 "2026-02-06T00:47:57Z")

</div>

May I ask if there’s a similar way to remove kerning? Can’t find a similar function for removing and passing None to setNextKerning\_forLayer\_direction\_, doesn’t seem to work
