Skip to content

LucasFonts/Glyphs-MoveableSidebearings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mouse Kerning and Spacing a.k.a. DragToKern

Apply kerning and edit spacing by dragging glyphs with your mouse.

Mouse Kerning and Spacing is a tool plugin. Activate it by pressing the shortcut key K or by clicking the toolbar icon that shows kTd. Double-click a glyph to go back to the Select tool.

The mode of operation is determined by the kerning/spacing icon in the Edit view.

  • Kerning mode
  • Spacing mode
  • Spacing is locked

Kerning Mode

Just drag any glyph in your edit view to adjust its kerning.

  • Hold Option to enable precision mode which increases the mouse sensitivity 10-fold.
  • Hold Shift to round the kerning values to 10 units.

Kerning Exceptions

To add or remove kerning exceptions, you can use shortcut keys. The kerning pair on which those shortcuts operate is always the glyph at the current mouse position and the glyph to the left of it.

  • A – Make an exception for the right side of the left glyph
  • S – Make an exception for the left side of the right glyph
  • D – Make exceptions for both glyphs
  • Shift+A – Remove the exception for the right side of the left glyph
  • Shift+S – Remove the exception for the left side of the right glyph
  • Shift+D – Remove the exceptions for both glyphs

This is best illustrated with an example:

Hovering over the ö, the shortcuts will:

  • A – Make an exception for the T with the o group
  • S – Make an exception for the T group with the ö
  • D – Make exceptions for T with ö
  • Shift+A – Remove the exception for the T with the o group
  • Shift+S – Remove the exception for the T group with the ö
  • Shift+D – Remove the exceptions for T with ö

Spacing Mode

Hover over a glyph’s left or right edge, and red indicators will appear. Click and drag while the indicators are shown to modify the sidebearings.

  • Click and drag while the Command key is pressed to move the glyph’s outline inside its current width.

  • Hold Option to enable precision mode which increases the mouse sensitivity 10-fold.

  • If the current master’s metrics are linked to another master, a lock icon is shown when trying to drag. You can still move the outline inside its current width by holding the Command key.

  • Hide or show the measurements while dragging via the contextual menu (Hide Measurements While Spacing/Show Measurements While Spacing).

Known issues

  • Metrics keys are not considered when dragging the spacing. The linked metrics just go out of sync.
  • Undo for metrics and kerning changes only works if you make the affected glyph the current glyph (e.g. by double-clicking it with the select tool)

Copyright

© 2022 by LucasFonts. Main programmer: Jens Kutílek. Licensed under the MIT license.