Skip to content

Instantly share code, notes, and snippets.

@kenjij
Created August 21, 2015 22:06
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kenjij/6c712e51d44d52204a81 to your computer and use it in GitHub Desktop.
Save kenjij/6c712e51d44d52204a81 to your computer and use it in GitHub Desktop.
Line-height adjustment in TextMate
# This example will make Adobe Source Code Pro font look snug in TextMate.
# Adjust space above the line
defaults write com.macromates.TextMate.preview fontAscentDelta -float -2
# Adjust space below the line
defaults write com.macromates.TextMate.preview fontLeadingDelta -float 0
# Reset to default
defaults delete com.macromates.TextMate.preview fontAscentDelta
defaults delete com.macromates.TextMate.preview fontLeadingDelta
@bsnux
Copy link

bsnux commented Aug 4, 2017

It looks like properties are different on TextMate 2, I used these ones:

$ defaults write com.macromates.TextMate fontLeadingDelta -integer -1
$ defaults write com.macromates.TextMate fontAscentDelta -integer -1

Using com.macromates.TextMate instead of com.macromates.TextMate.preview

Make sure you executed those commands when TextMate is not running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment