镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Apr 1, 2020. It is now read-only.
zrzkaPublic archive

About

Enables ligatures in Xcode

Resources

Stars

118 stars

Watchers

1 watching

Forks

Latest commit

 

History

34 Commits

Folders and files

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

About

Enables ligatures in Xcode

Resources

Stars

118 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages