Re:Comic Code – Monospaced interpretation of the most over-h...
by jve on Friday July 26, 2019 @10:26AM
(#20535019)
How do you support ligatures for monospaced fonts?
[ Parent
| on HN ]
Re:Comic Code – Monospaced interpretation of the most over-h...
by Someone on Friday July 26, 2019 @10:47AM
(#20535180)
You make sure all ligatures have widths that are integral multiples of the standard width.
If you’re strict, you make them the same width as the separate characters would be. If you’re less strict, you could, for example, have “⇒” or “½” be one character width, and not 2, respectively 3 (the latter probably would make you give up making a ligature for “1/2”)
Re:Comic Code – Monospaced interpretation of the most over-h...
by vanderZwan on Friday July 26, 2019 @12:04PM
(#20535804)
Monoid also experimented with using ligatures for better kerning at some point, don't know if it still does that. I thought that was a neat idea, especially since that is kind-of-but-not-really what ligatures are for in the first place.
Re:Comic Code – Monospaced interpretation of the most over-h...
by lmilcin on Friday July 26, 2019 @10:38AM
(#20535108)
The same way as in any other font.
https://github.com/tonsky/FiraCode