3 ms·
We have Unicode now. Not everyone and not everywhere, and depending on the font, the line-drawing characters may not be the same width as the others even if it
by userbinator 10y ago
We have Unicode now.
Not everyone and not everywhere, and depending on the font, the line-drawing characters may not be the same width as the others even if it's a monospace font (e.g. see https://blog.helftone.com/ascii-art-unicode/ https://blog.helftone.com/ascii-art-unicode/ ). The whole point of text files in things like RFCs is to be as portable as possible, and using Unicode somewhat defeats that point.
- arcticbull 10y agoMy take-away from the Monodraw writeup was that Unicode is just as portable, and all Unicode line drawing glyphs are the same size in monospace fonts -- they're just not available in all fonts. When that happens, a different font may be substituted by browsers (probably not by Terminal, though). I wouldn't put the finger on Unicode but rather that not all fonts have all Unicode glyphs yet, as I seem to recall was the case with ASCII line drawing glyphs years back. Definitely seen that before and it's good to know why. Thanks!
- Animats 10y agoThat's a problem. The above example looks good in a Ubuntu terminal window and in Firefox, but misaligned in the "gedit" text editor. In the SciTE editor, the line drawing characters show as four hex values in a box. groff, even with the "preconv" preprocessor for Unicode, can't display them either. The box drawing characters aren't even in the astral planes. They're in plane 0 in the 0x2xxx range. So even old 16-bit Unicode implementations should support them. (The TCP header from an RFC was just an example. I'm converting some old troff documents to PDF, and they have lots of box drawings.)