Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS: Support all OpenType font features #11611

Merged
merged 4 commits into from May 15, 2024

Conversation

JunkuiZhang
Copy link
Contributor

@JunkuiZhang JunkuiZhang commented May 9, 2024

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 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.

2024-05-09.21.35.19.mov

Release Notes:

  • Added support for all OpenType font features to macOS.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label May 9, 2024
@osiewicz
Copy link
Contributor

Thanks!

@osiewicz osiewicz merged commit f7c5d70 into zed-industries:main May 15, 2024
8 checks passed
osiewicz pushed a commit to RemcoSmitsDev/zed that referenced this pull request May 18, 2024
This PR brings support for all `OpenType` font features to
`macOS(v10.10+)`. Now, both `Windows`(with zed-industries#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 zed-industries#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Character Variants don't work for Zed (Commit Mono font)
2 participants