-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Comments
Thanks, a great suggestion! Do you know any programs that can display those? |
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. |
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... |
Yes they have. Here's the table from the relevant Wikipedia page displayed using Fira Code in a program I wrote: And here's a copy of the text shown in that screenshot
Mayne confirm you are using the currently newest release? |
First of all: Thanks a lot! That said I need the CR-Arrow (aka. ↵). 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? |
Maybe @tonsky could take a look at that. |
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.
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. |
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.
The text was updated successfully, but these errors were encountered: