0xType / 0xProto

A programming font focused on source code legibility
SIL Open Font License 1.1
1.57k stars 14 forks source link

Suggestion: add Unicode spaces #61

Closed MIvanchev closed 6 months ago

MIvanchev commented 6 months ago

First I want to say a big THANK YOU for this really impressive font that I now use for my mode line :) I would like to suggest the addition of the Unicode spaces, especially the ones after 0x2000. You can see a list here.

matype commented 6 months ago

Thank you too for using 0xProto and for your suggestion. Embarrassingly, I just realized there are tons of different whitespace characters in Unicode. Give me a sec to wrap my head around them before I support it.

MIvanchev commented 6 months ago

There are plenty, it's true :smile:

matype commented 6 months ago

Memo

Right now, 0xProto includes the uni0020 and uni00A0 Unicode spaces.

Other programming fonts have supported these additional Unicode spaces:

JetBrains Mono

Fira Code

Victor Mono

MonoLisa

same as 0xProto

Intel One Mono

same as 0xProto

Monaspace

same as 0xProto

matype commented 6 months ago

In https://github.com/0xType/0xProto/issues/61#issuecomment-1987810669 , I compared 0xProto with other popular open-source programming fonts. Found out Fira Code has the most Unicode spaces. Made me think it's a good move to include the same ones in 0xProto. So, I've decided to add these five glyphs this time:

@MIvanchev Can I get your opinion on this?

MIvanchev commented 6 months ago

IMHO 0x000D doesn't make much sense as it's a control char. The others are IMO It's a good idea, I use more than that set personally to format stuff but it definitely makes sense to include those. The period space is very important for me :+1:

matype commented 6 months ago

Thank you! I just want to ask a question to make 0xProto better, not just do the same thing as other fonts.

I use more than that set personally to format stuff

In what situations, aside from this one, would you use other Unicode spaces? Is it mainly in programming?

MIvanchev commented 6 months ago

No, I use 0xProto (or intend to use it) for the mode line of my WM. I like it because it's thicker but not as thick as bold face and extremely legible. I use the Unicode spaces to fine tune, i.e. to fit more on a laptop display. Of course, no need to provide the glyphs if the font is monospaced (I just figured this out today).

matype commented 6 months ago

Thanks, I understand.

By the way, this hasn't been officially announced yet, but I'm planning to release a proportional font next month for typing natural language, not programming, that will inherit features from 0xProto. This new font might be better suited to your needs ;)

matype commented 6 months ago

Hi @MIvanchev

I've just released v1.603 to support more Unicode spaces 👍

MIvanchev commented 6 months ago

I read you, but doesn't that go against the monospaced nature of 0xProto? Btw, I've kept 0xProto for my mode line, thanks for this epic font.