• Pretty Fonts in VMware Player and Workstation

    Date: 2010.08.31 | Category: Tech Stuff | Tags:

    Don’t know about you, but when the UI of my VMware Player turned all grotesque-looking with horrible serifed megafonts, I kinda thought they’d suddenly decided to go with a completely new and ugly UI toolkit.

    But really, it’s still GTK, they’ve just decided to no longer honor system settings and go with their own bundled copy with its own settings.

    But you can still get nice fonts! Just go root, and edit /usr/lib/vmware/libconf/etc/gtk-2.0/gtkrc, adding these lines:

    # Some font of your choice, anything that's installed on the
    # main system will do, I really like FreeSans at 8 points:
    style "user-font"
    {
      font_name="FreeSans 8"
    }
     
    widget_class "*" style "user-font"
    gtk-font-name="FreeSans 8"
     
    # Default double-click timeout is extremely short in my GTK:
    gtk-double-click-time=400



    Updated: Seems WordPress was messing with the doublequotes, so copy/pasting this snippet would do you no good. It should be copy/paste safe now ;)

    By the way, if you’re not getting subpixel rendering, you might want to either edit your ~/.fonts.conf file to suit (should be perfectly clear what’s happening here), or create /etc/fonts/local.conf (which means it applies to anyone, even when you elevate yourself to root for example) with something like this:

    <?xml version='1.0'?>
    <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
    <fontconfig>
     <match target="font">
      <edit mode="assign" name="rgba">
       <const>rgb</const>
      </edit>
     </match>
     <match target="font">
      <edit mode="assign" name="hinting">
       <bool>true</bool>
      </edit>
     </match>
     <match target="font">
      <edit mode="assign" name="hintstyle">
       <const>hintnone</const>
      </edit>
     </match>
     <match target="font">
      <edit mode="assign" name="antialias">
       <bool>true</bool>
      </edit>
     </match>
    </fontconfig>