# macOS: Support all \`OpenType\` font features \(\#11611\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/f7c5d70740cda7db8d85c5f9057891501211a042)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: f7c5d70740cda7db8d85c5f9057891501211a042

Requested commit: f7c5d70740cda7db8d85c5f9057891501211a042

Commit: f7c5d70740cda7db8d85c5f9057891501211a042

Tree: b8781da754ceeeaafd891169f5d2b65689e78dcc

Author: 张小白

Committer: GitHub

## Message

```
macOS: Support all `OpenType` font features (#11611)

This PR brings support for all `OpenType` font features to
`macOS(v10.10+)`. Now, both `Windows`(with #10756 ) and `macOS` support
all font features.

Due to my limited familiarity with the APIs on macOS, I believe I have
made sure to call `CFRelease` on all variables where it should be
called.

Close #11486 , and I think the official website's
[documentation](https://zed.dev/docs/configuring-zed) can be updated
after merging this PR.

> Zed supports a subset of OpenType features that can be enabled or
disabled for a given buffer or terminal font. The following OpenType
features can be enabled or disabled too: calt, case, cpsp, frac, liga,
onum, ordn, pnum, ss01, ss02, ss03, ss04, ss05, ss06, ss07, ss08, ss09,
ss10, ss11, ss12, ss13, ss14, ss15, ss16, ss17, ss18, ss19, ss20, subs,
sups, swsh, titl, tnum, zero.



https://github.com/zed-industries/zed/assets/14981363/44e503f9-1496-4746-bc7d-20878c6f8a93



Release Notes:

- Added support for **all** `OpenType` font features to macOS.
```

## Parents

- [f47bd32f15fd78444f26400887d45ac0e3059050](https://git.cafe/gitcafe/zed/commit/f47bd32f15fd78444f26400887d45ac0e3059050?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/f7c5d70740cda7db8d85c5f9057891501211a042?format=markdown)
