Skip to content

Instantly share code, notes, and snippets.

@hyvyys

hyvyys/fontlab.ahk

Last active Nov 13, 2020
Embed
What would you like to do?
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