Blog

Enable BBEdit Editor ligature font

Font ligatures are off by default (except for the “Hasklig” font), but if you wish you may enable ligatures on a per-font basis. To enable ligatures for a specific font, use the preference key “EnableFontLigatures”, an underscore, and then the display name of the font (as it appears in the “Fonts” panel or the “Font Book” application, not the name of the font file on disk). Using the “Hasklig” font as an example:

defaults write com.barebones.bbedit EnableFontLigatures_Hasklig -bool YES

Even when font ligatures are turned on, “rare” ligatures are turned off by default. To enable rare ligatures for a specific font, use the preference key “EnableRareLigatures”, an underscore, and then the display name of the font (as it appears in the “Fonts” panel or the “Font Book” application, not the name of the font file on disk). Again using the “HaskLig” font as an example:

 

defaults write com.barebones.bbedit EnableRareLigatures_HaskLig -bool YES

 

Whether or not to turn on rare ligatures depends entirely on the design of the font and its behavior when used for editing; there is no hard-and-fast rule for what ligatures a font would decide to support as rare.