Geertjan's Blog

  • September 1, 2015

"Hack" Font in NetBeans IDE is Great!

Geertjan Wielenga
Product Manager

A flurry of Tweets a day or so ago re Hack and NetBeans IDE:

John Sirach, from the PiDome project (which won a Duke's Choice Award last year), who started the flurry above and has now introduced the Hack font to the NetBeans community (thanks for that John!), likes this font because it makes code look good even when the font size is small. Here's a screenshot he sent me, with the font size set to 10px:

Here's how it looks for me, I'm using it fulltime now, with font size 18px (nice for teaching and so on), and "Dark Metal" from the "Dark Look and Feel Themes" plugin:

The above is a screenshot that is included in The Complete Guide to Tuning the Appearance of NetBeans.

Get the "Hack" font here: http://sourcefoundry.org/hack/

Join the discussion

Comments ( 4 )
  • Ryan Wednesday, September 2, 2015

    "Hack" also came up on hackernews recently.

    It is basically DejaVu Sans Mono with minor (minor) tweaks.

    Someone came up with this gif to directly compare the two:


    The red square is "Hack".

    For me the biggest difference is that "Hack" doesn't work right with the windows-1252 codepage. I don't know how windows-1252 got set but it is and "Hack" converts // to ???? which isn't going to work in a java editor.

    DejaVu Sans Mono looks great and I'm a big supporter of Bitstream.

    These are nice coding fonts too: Source Code Pro, Consolas, Monaco, Inconsolata, Droid Sans Mono, Ubuntu Mono.

  • Rahul Tuesday, September 8, 2015

    I have installed hack on my system and enabled this font in netbeans 8.1 beta version. Font looks cool in netbeans but I am facing a weird rendering issue in this font.

    In java classes - static final string constants (in constant name only) ->

    'A' is being rendered as - '~'

    '_' is being rendered as some weird sign.

    Here is the link to refer:


  • Rahul Wednesday, September 9, 2015

    I am facing a rendering issue with hack in netbeans 8.1 beta in windows.

    Here is the link:


    Here 'A' is rendering as '~' and '_' is rendering as some weird sign.

  • guest Saturday, November 28, 2015

    it's a great pleasure if someone get source-han-sans-cn correctly displayed in netbeans or JRE!!! why JRE not support new oft fonts?

    JRE/JDK doesn't suupport oft CJK fonts make linux system user frustrated a lot!

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.