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

Glyph Request: Control Pictures block #764

Closed
Ryan1729 opened this issue May 19, 2019 · 8 comments
Closed

Glyph Request: Control Pictures block #764

Ryan1729 opened this issue May 19, 2019 · 8 comments
Labels
Milestone

Comments

@Ryan1729
Copy link

The Unicode Control Pictures block contains glyphs for displaying otherwise unprintable control characters from ASCII, such as tab or line feed. It is sometimes useful to be able to see which, if any of these characters are contained in a file. If a font has these Control Pictures glyphs then a viewing program can display them instead of those characters. For the first 33 characters this turns out to be a simple addition of 0x2400 to each character below 33.

The most common case where it is useful to see which control characters are present is when a file has been edited with a program which has changed the line endings from windows-style CRLF to unix-style LF or vice-versa. So the ␍ and ␊ characters would probably see the most use. However, in whtespace sensitive languages like Python it can also be useful to see exactly how many spaces and or tabs are on each line of a file.

@tonsky
Copy link
Owner

tonsky commented May 20, 2019

Thanks, a great suggestion! Do you know any programs that can display those?

@Ryan1729
Copy link
Author

Sorry for not responding here. I ended up editing a copy of the font to stuff glyphs for CR and LF into it, which solved my immediate problem, and it hasn't really been an issue for me since.

@Ryan1729
Copy link
Author

Although now that I think about it, having all of these available will make debugging something I plan to do later easier. Anyway, thank you for adding these!

@tonsky tonsky added this to the 1.208 milestone Aug 27, 2019
@Quantlyx
Copy link

Quantlyx commented Aug 8, 2022

Although now that I think about it, having all of these available will make debugging something I plan to do later easier. Anyway, thank you for adding these!

Have these been added? I still can't get them to show in Putty...

@Ryan1729
Copy link
Author

Ryan1729 commented Aug 9, 2022

Have these been added? I still can't get them to show in Putty...

Yes they have. Here's the table from the relevant Wikipedia page displayed using Fira Code in a program I wrote:

2022-08-08_644x128

And here's a copy of the text shown in that screenshot

U+240x ␀ ␁ ␂ ␃ ␄ ␅ ␆ ␇ ␈ ␉ ␊ ␋ ␌ ␍ ␎ ␏
U+241x ␐ ␑ ␒ ␓ ␔ ␕ ␖ ␗ ␘ ␙ ␚ ␛ ␜ ␝ ␞ ␟
U+242x ␠ ␡ ␢ ␣ ␤ ␥ ␦ 

Mayne confirm you are using the currently newest release?

@Quantlyx
Copy link

Quantlyx commented Aug 9, 2022

First of all: Thanks a lot!
So it turns out im neither missing U+000D nor U+240D or at least I don't need them. There is definitely a bug which causes CR and such symbols to be displayed in kinda comic sans at low font-sizes.

That said I need the CR-Arrow (aka. ↵).
That said [U+21B0 - U+21B3] seem to exist but neither U+21B4 nor my desired U+21B5 are to be found.

If you cold double-check this for me as I do not have any decent knowlege of font mechanics.

You have stated that you build your own custom font out of FiraCode to add CR on when it was not implemented yet. Maybe you could recommend an easy to use software just to add or edit some characters?
Thanks a lot in advance!

@Quantlyx
Copy link

Quantlyx commented Aug 9, 2022

Maybe @tonsky could take a look at that.
(Missing: U+21B4 and U+21B5)

@tonsky tonsky changed the title Glyph Request: The Control Pictures block Glyph Request: U+21B4 and U+21B5 Aug 9, 2022
@tonsky tonsky changed the title Glyph Request: U+21B4 and U+21B5 Glyph Request: Control Pictures block Aug 9, 2022
@Ryan1729
Copy link
Author

You have stated that you build your own custom font out of FiraCode to add CR on when it was not implemented yet.

I had attempted that, and I think I had managed to edit the font, but if memory serves, it turned out that the font rendering software library I was using seemed to have a special case built-in such that it skipped even looking for a character for U+000D. So I ended up mapping control characters to their control pictures equivalents myself. I suspect that you unfortunately, don't have that option for your use case.

Maybe you could recommend an easy to use software just to add or edit some characters?

I recall trying to use Font Forge, but I think I ended up using Birdfont in the end. I also unfortunately recall both of those programs having a bit of a learning curve, and most documentation not being focused on the "copy this character to this slot" use case. Honestly I'd be interested if someone was able to find or create some easy to use software for this purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants