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

Prepatched fonts: Revive some ligature removal #1191

Merged
merged 1 commit into from
May 2, 2023
Merged

Conversation

Finii
Copy link
Collaborator

@Finii Finii commented May 2, 2023

[why]
Some sourcefonts, even that are monospaced, have a fi and/or fl ligature that maps into one cell. That looks very strange.

[how]
Partially revert commit
148b0c4 Sunset ligature removal

for the cases that have a one-cell fi, fl, etc ligature, or a ldot related ligature - that is active by default. Discretionary ligatures or Stylistic Sets are not changed.

Do the removal on all patched fonts for consistency, not just Nerd Font Mono.

[note]
On Noto different subtables are needed for Sans, Serif and Sans-Mono. We can not set up different configs for each, so all are tried in all fonts and might fail (this is normal).

Fixes: #1187

Requirements / Checklist

What does this Pull Request (PR) do?

How should this be manually tested?

Any background context you can provide?

What are the relevant tickets (if any)?

Screenshots (if appropriate or helpful)

[why]
Some sourcefonts, even that are monospaced, have a `fi` and/or `fl`
ligature that maps into one cell. That looks very strange.

[how]
Partially revert commit
  148b0c4  Sunset ligature removal

for the cases that have a one-cell `fi`, `fl`, etc ligature, or a `ldot`
related ligature - that is active by default. Discretionary ligatures or
Stylistic Sets are not changed.

Do the removal on all patched fonts for consistency, not just `Nerd Font Mono`.

[note]
On Noto different subtables are needed for Sans, Serif and Sans-Mono. We
can not set up different configs for each, so all are tried in all fonts
and might fail (this is normal).
Same holds for OpenDyslexic Alta, Regular, Mono, Bold...

Fixes: #1187

Signed-off-by: Fini Jastrow <[email protected]>
@Finii
Copy link
Collaborator Author

Finii commented May 2, 2023

This direct subtable removal is huddely muddely unclean 😒
Maybe we will find a better solution somewhen, or at least write a helper that finds all the different subtable names in the font weights... Whatever, this seems to do.

@Finii Finii merged commit d9f7dbe into master May 2, 2023
@Finii Finii deleted the bugfix/fi-ligature branch May 2, 2023 15:23
@Finii Finii added this to the v3.0.1 milestone May 3, 2023
@Finii Finii mentioned this pull request Feb 13, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Space Mono Ligature fi looks strange
1 participant