Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What fonts to browse scala source code and render <- and =>

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 :-)

like image 564
Rob Wilton Avatar asked Oct 17 '12 08:10

Rob Wilton


1 Answers

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):

Default and edited Deja Vu Sans Mono double right arrow

like image 180
Rex Kerr Avatar answered Oct 20 '22 10:10

Rex Kerr