Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

zrzka/LigatureXcodePlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LigatureXcodePlugin

Because Xcode 8 does support ligatures out of the box, there's no need to use this plug-in. Anyway, if you do use Xcode < 8, continue reading.

Description

It forces all DVTTextStorage objects to use plug-in ligature settings. Not the best solution so far, but much better compared to the previous NSAttributedString modifications.

I did find where Xcode sets NSLigatureAttributeName value to 0. Tried to modify it, but it didn't work. There must be another place where it's done.

Feel free to file an issue if Xcode doesn't behave as expected.

ligatures

Requirements

  • OS X Yosemite, El Capitan or Sierra
  • Xcode 7.0, 7.1, 7.2, 7.3
  • Font with ligatures support (PragmataPro, ...)
    • Default Xcode fonts like Menlo don't support ligatures

Xcode 8 Support

There's no need to use this plugin in Xcode 8, because ligatures are supported out of the box. Hooray.

Installation

Alcatraz

Plug-in is available via Alcatraz - The package manager for Xcode.

Manual

  • open project file,
  • build,
  • restart Xcode.

There's Copy Files - Build Phase, which automatically installs plugin.

Settings

You can use Edit - Ligature plug-in menu to disable ligatures, enable default ligatures (initial value) or enable all ligatures.

edit-ligature-plugin

Uninstallation

Remove LigatureXcodePlugin.xcplugin from ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins and restart Xcode.

Written by