3 ms·
How do ligatures work with characters per line indication, would 81 character line with a ligature make it 80 characters visibly?
by zepolen 9y ago
How do ligatures work with characters per line indication, would 81 character line with a ligature make it 80 characters visibly?
- laurentdc 9y agoIt doesn't alter the characters per line indication, so it doesn't mess with debug or syntax error messages if that's what you mean. The difference is only in the presentation, but "under the hood" it's still two characters. In Atom, with Fira: * typing => turns into the ⇒ glyph automatically * it still counts as two: a new document with only ⇒ in it and your cursor at the end reads properly as "Line 1, Column 3" * visibly, if you're using a monospaced version of the font, it looks like a single character. otherwise, the "optical" width is completely arbitrary just like a regular font
- zepolen 9y agoThat would make keeping your code max 80 characters long more difficult since with ligatures it might look less - and text editor rules can't help.