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

Feature/add more math glyphs #28

Merged
merged 2 commits into from Feb 11, 2020
Merged

Conversation

Finii
Copy link
Collaborator

@Finii Finii commented Feb 10, 2020

These glyphs have been asked for by issue #22 and #26. People using powerline and git usually have them in the default config, but that breaks in some Windows shells.

This is not as thoroughly tested on all platforms as I would wish, unfortunately.

[why]
Using powerline with git sometimes needs the glyphs

  • 0u2262 not identical to
  • 0u2263 strictly equivalent to

Usually they are provided by other installed fonts and the system's font
rendering mechanism should handle that. But that does not work on some
Windows applications that work as shells like PowerShell and Cmdr

[how]
Grab these glyphs from a differnt font (i.e. Hack) which is included in Nerd Fonts' repo and patch it into our destination font. Nerd Fonts does not patch these into fonts, usually.

[note]
This PR depends (in fact includes) PR #27. I can not properly separate them because because of github limitations, sorry (or I'm too dump).

[why]
When Nerd Font evolves and new commits become pulled to master our
scripts might break.

See also warning at
  https://github.com/ryanoasis/nerd-fonts#unstable-file-paths

This is the case here, because Nerd Fonts decided to rename Cascadia
when it patches it. Our subsequent renaming then failes.

[how]
Reference release v2.1.0 as this is master at the moment.
Adapt to output new file name.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
Using powerline with git sometimes needs the glyphs
 - 0u2262   not identical to
 - 0u2263   strictly equivalent to

Usually they are provided by other installed fonts and the system's font
rendering mechanism should handle that. But that does not work on some
Windows applications that work as shells like PowerShell and Cmdr

[how]
Grab these glyphs from a differnt font and patch it into our destination
font. Nerd Fonts does not patch these into fonts, usually.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
@Finii Finii mentioned this pull request Feb 10, 2020
Copy link
Owner

@adam7 adam7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably make the nerd-fonts version a parameter somehow

@adam7 adam7 merged commit 0da128d into adam7:master Feb 11, 2020
@Finii
Copy link
Collaborator Author

Finii commented Feb 11, 2020

Addressed nerd-fonts version in PR #29

@Finii Finii deleted the feature/add_more_math_glyphs branch February 13, 2020 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants