The installation process for Jedit(*) on Ubuntu is pretty well documented – as long as you follow option 2 from the jedit download instructions. It’s well worth going for the latest release – as a lot of the plugins don’t work on earlier versions.
But Jedit leans on Java and Java (apparently) requires ttf files, not otf files.
Here’s my workaround which, although a bit hacky, works for me.
- Install FontForge
- Download the FontForge sources
- Open the FontForge source in FontForge
- Export it as inconsolata.ttf (ignore any warnings)
- Copy it to the ttf-inconsolata font directory that was created as part of the installation of the ubuntu package, e.g: sudo cp inconsolata.ttf /usr/share/fonts/truetype/ttf-inconsolata
- Now edit fontconfig.properties.src in /etc/java-6-openjdk and add the following four lines
filename.Inconsolata-Regular=/usr/share/fonts/truetype/ttf-inconsolata/inconsolata.ttf filename.Inconsolata-Bold=/usr/share/fonts/truetype/ttf-inconsolata/inconsolata.ttf filename.Inconsolata-Oblique=/usr/share/fonts/truetype/ttf-inconsolata/inconsolata.ttf filename.Inconsolata-BoldOblique=/usr/share/fonts/truetype/ttf-inconsolata/inconsolata.ttf
There you are, now you can use Inconsolata in your Jedit.
Was it worth it? For me – being used to Windows and Mac it has made my Ubuntu dev environment much more friendly than it was before. YMMV: screenshots of different fonts on my machine are below.
(*) FWIW – I do my RoR hacking on Textmate on the Mac and recently moved from Aptana to Jedit on Windows (I didn’t need the full-on IDE features). On Ubuntu I was looking for an alternative to Eclipse. I started with Gedit for a while but syntax highlighting was pretty poor and I spent too long chasing down all the different advice available on the interwebs and still not getting anywhere. IMHO Jedit is an altogether simpler option for RoR as it needs only a few tweaks as documented by the likes of Eadz and Xiabozz to get you moving in the right direction.