• This repository has been archived on 01/Apr/2020
  • Stars
    star
    119
  • Rank 297,930 (Top 6 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created about 9 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Enables ligatures in Xcode

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