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

Add Githubnext Monaspace #1405

Merged
merged 10 commits into from
Nov 19, 2023
Merged

Conversation

julien-blanchon
Copy link
Contributor

Description

Added and patched Github Monaspace

Requirements / Checklist

What does this Pull Request (PR) do?

  • add Github Monaspace unpatched font
  • add license & readme
  • patch the font
  • update readme
  • provide an update script for the font

How should this be manually tested?

Any background context you can provide?

What are the relevant tickets (if any)?

Closes #1403

Screenshots (if appropriate or helpful)

@julien-blanchon
Copy link
Contributor Author

To patch:
find src/unpatched-fonts/Monaspace*/ -name "*.otf" -exec fontforge --script ./font-patcher {} --complete --debug 2 \;

@Finii Finii changed the title Add Gihtub Monaspace Add Githubnext Monaspace Nov 10, 2023
@julien-blanchon
Copy link
Contributor Author

I hope v3.0.3 is coming soon with it 🤗

@Finii
Copy link
Collaborator

Finii commented Nov 10, 2023

Thanks for the PR! (for my own Issue ;-)

From what I gleamed you did not add a license file.
I can add that, and I would like to change the directory structure as well.
Nothing needs to be done from your side.

But what I would like to do is reducing the number of weights. Do you really think all the weights are useful?

@Finii
Copy link
Collaborator

Finii commented Nov 10, 2023

I hope v3.0.3 is coming soon with it 🤗

I am about to finalise 3.1.0, writing it up in #1404, but slow going as I have to work 'for my meals' in parallel ;)

@julien-blanchon
Copy link
Contributor Author

Thanks !

I think the License+Readme are on subdirectories for each font.
Sure feel free to fix anything you like <3
Yes I don't think we need that much font, we can maybe prune some file to reduce the size

@julien-blanchon
Copy link
Contributor Author

I am about to finalise 3.1.0, writing it up in #1404, but slow going as I have to work 'for my meals' in parallel ;)

Haha no worries, I think many people are alredy waiting for Nerd Font to add Monaspace to use it in vs-code

@Finii
Copy link
Collaborator

Finii commented Nov 10, 2023

use it in vs-code

Unfortunately there is a bug peculiarity with Visual Studio 2022 that breaks on a lot fonts and that might need a fix beforehand? See #1242
Well, that is not VS-Code, but still related maybe.

@Finii Finii added this to the v3.1.0 milestone Nov 10, 2023
Copy link
Collaborator

@Finii Finii left a comment

Choose a reason for hiding this comment

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

Not ready, but easy to fix.

Except that we need to come up with a name substitute.

bin/scripts/lib/fonts.json Outdated Show resolved Hide resolved
bin/scripts/lib/fonts.json Outdated Show resolved Hide resolved
"patchedName": "MonaspaceArgon",
"folderName": "MonaspaceArgon",
"imagePreviewFont": "Monaspace Argon Nerd Font",
"linkPreviewFont": "monaspace-argon",
Copy link
Collaborator

@Finii Finii Nov 10, 2023

Choose a reason for hiding this comment

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

This is just not true?!
Is a PR ongoing?

Copy link
Contributor Author

@julien-blanchon julien-blanchon Nov 10, 2023

Choose a reason for hiding this comment

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

I'm not sure what to do, I let you edit the PR if needed

Copy link
Collaborator

Choose a reason for hiding this comment

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

That's the details part of a link to https://programmingfonts.org, but I do not see Monaspace there at all.

bin/scripts/lib/fonts.json Outdated Show resolved Hide resolved
bin/scripts/lib/fonts.json Outdated Show resolved Hide resolved
readme.md Outdated Show resolved Hide resolved
julien-blanchon and others added 6 commits November 10, 2023 14:16
Co-authored-by: Fini <[email protected]>
SemiWide and ExtraWide might be nice in some contexts, but that is not
really the audience of Nerd Fonts I guess.

Lets start with few and we can always add more if there is really a
demand.

Simplify the paths; the old style stems from the time when we patched
all variants per source font. Nowerdays the fonts are few (3 per source)
and will almost always be installed together anyhow.

Shorten the naming a bit for, for example
ERROR: ====-< Family (ID 1)      too long (37 > 31): MonaspaceXenon Nerd Font Propo Medium

Signed-off-by: Fini Jastrow <[email protected]>
[why]
Monaspace has an RFN that individually protects 'Monaspace' and all the
face names of noble gases 'Xenon' etc. Both must not be used on patched
fonts.

[how]
Just add the rule(s). The concrete naming is not decided yet.

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

Finii commented Nov 10, 2023

Force push because I had one name wrong 😬

@Finii
Copy link
Collaborator

Finii commented Nov 10, 2023

Fixing shellcheck issues (forgot to run that locally), force push imminent...

image

[why]
Shellcheck complains that quotes are missing.
We know that there will not be any problem ever as the elements are hard
coded, but fix to be warning free.

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

Finii commented Nov 10, 2023

To patch: find src/unpatched-fonts/Monaspace*/ -name "*.otf" -exec fontforge --script ./font-patcher {} --complete --debug 2 \;

Well, I usually run

$ NERDFONTS="--debug 2" bin/scripts/gotta-patch-em-all-font-patcher\!.sh -v /Monaspace

or without debug-info and with parallel processing to be finished faster add -j:

$ bin/scripts/gotta-patch-em-all-font-patcher\!.sh -jv /Monaspace

To see just all the re-naming and do not really patch, add --dry to the NERDFONTS envvar.

Edit: Additional info:

The difference is that patch em all patches all 3 variants (Nerd Font, Nerd Font Mono, and Nerd Font Propo) and respects the contents of config.cfg (and allows to run multiple patch processes concurrently - nice if you have more cores).

@bradwilson
Copy link

bradwilson commented Nov 10, 2023

FYI, I pulled this PR, built the fonts and installed the Mono variant of them. They have the same problem described in #1242 where Visual Studio is unable to display the font and falls back to Courier New.

(No issues with the font in VS Code or Windows Terminal, just in Visual Studio 2022)

Basically just confirming #1405 (comment) is true.

@Finii
Copy link
Collaborator

Finii commented Nov 10, 2023

They have the same problem described in #1242 where Visual Studio is unable to display the font and falls back to Courier New.

Working on this now with 1st priority (i.e. this night). Stole the gaming laptop from one of my kids to have a real Windows machine next to me 😬 Installing Visual Studio 2022 Community ...

@Finii
Copy link
Collaborator

Finii commented Nov 11, 2023

Hope #1242 is fixed with #1406, any volunteers to test welcome (I need sleep)

@Finii Finii added externally blocked Ready ⛱ Ready to merge but waiting to be merged near a release labels Nov 11, 2023
@Finii
Copy link
Collaborator

Finii commented Nov 11, 2023

@allcontributors please add @julien-blanchon for code

Copy link
Contributor

@Finii

I've put up a pull request to add @julien-blanchon! 🎉

@julien-blanchon
Copy link
Contributor Author

Wow it's already ready, thanks you very much

@felipesere
Copy link

With #1406 merged, can Monaspace be merged now too? 😻

@Finii
Copy link
Collaborator

Finii commented Nov 16, 2023

We are still waiting for upstream (i.e. @idan) on a naming decision (see [1]).
If we release now the patched font will (have to) be called MoniSpace Nerd Font (or similar).
The release can/will be triggered once we have a decision.

(Well, and after the other still open PR is/are merged, I continue adding stuff meanwhile)

[1] #1403 (comment)

@Finii
Copy link
Collaborator

Finii commented Nov 16, 2023

Maybe some of you want to try the patched font out, and report bugs. So we can fix the issues before release?

MonispaceNeonNerdFont.tar.xz.gz

Thank you!

P.S.: The archive is tar.xz for good compression and gz because Github does not support xz, sorry for the incenvenience

@bradwilson
Copy link

@Finii Can confirm that this version works as expected in VS 2022! 🎉

After the working draft name Monispace the final patched font name will
be Monaspice.

* It keeps the characteristic `Mona` in the beginning
* It changes just one character
* The replacement is still a real word
* The replacements sounds very similar

Also other very good names have been suggested, thank you all for the
input!

Signed-off-by: Fini Jastrow <[email protected]>
@Finii Finii merged commit 5d999cd into ryanoasis:master Nov 19, 2023
1 of 2 checks passed
@bradwilson
Copy link

I see the preview for the new font on the NerdFonts.com sit, but the download does not work (and I could not find the patched fonts in the repo yet). Am I too early? Is everything still being deployed? 😄

@Finii
Copy link
Collaborator

Finii commented Nov 19, 2023

@bradwilson

I see the preview for the new font on the NerdFonts.com sit, but the download does not work (and I could not find the patched fonts in the repo yet). Am I too early? Is everything still being deployed? 😄

Screenshot 2023-11-20 at 00 39 07

See

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❲Aa❳ new font Ready ⛱ Ready to merge but waiting to be merged near a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add font Monaspace
4 participants