Skip to content

Instantly share code, notes, and snippets.

@hyvyys
Last active November 13, 2020 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hyvyys/5210b58a5dcda5e9e476dfc5c103ef50 to your computer and use it in GitHub Desktop.
Save hyvyys/5210b58a5dcda5e9e476dfc5c103ef50 to your computer and use it in GitHub Desktop.
AutoHotKey script for FontLab
; prevent Alt-zooming from triggering top menu
Alt::
KeyWait, Alt
return
LAlt Up::
if (A_PriorKey = "Alt")
return
return
; replace field content with "|" – I use this to quickly set symmetrical sidebearings
!\::
Send ^a
Send {|}
Send {Enter}
return
; copy active field to the next field – I use this to bind the right sidebearing to the same glyph
^+c::
Send ^a
Send ^c
Send {Tab}
Send ^v
Send {Enter}
return
; clear two consecutive fields and activate the next button – I use this to clear sidebearings or anchor expressions across masters
; warning: clear FontLab's Ctrl+Shift+D shortcut first or assign another hotkey below
^+d::
Send ^a
Send {Backspace}
Send {Tab}
Send ^a
Send {Backspace}
Send {Tab}
Send {Space}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment