I'm using Eclipse on Windows 7 to browse Scala source code. Scala allows ⇒
to be used instead of =>
, and ←
instead of <-.
However, I can't seem to find a good clear monospace font that renders the unicode ⇒
and ←
well. Often I just get a box instead of ⇒
.
I've tried:
Consolas - is the clearest general font, but won't render ⇒
Anonymous Pro - doesn't render ⇒
Deja Vu Sans Mono - does render ⇒
, but it is so small it is hard to see!
For my own code, I can just avoid ⇒
, but this doesn't help viewing third party library source. How have other folks solved this problem? If other folks are using ⇒
in their code then presumably they also know of a monospace font that also renders it clearly :-)
I think Inconsolata works--but I use Linux, so I'm not sure it will work for you on Windows.
Inconsolata doesn't have the glyph. Your best bet is to take Deja Vu Sans Mono and edit the right-double-arrow glyph to be bigger. I just did it using FontForge on Linux; it took me about 5 minutes.
Here's an example before and after (after is on the bottom):
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With