Results 1 to 5 of 5

Thread: java and smooth fonts

  1. #1
    Join Date
    Jan 2006
    Beans
    1,237
    Distro
    Ubuntu 10.04 Lucid Lynx

    java and smooth fonts

    hello all, I use openjdk and I feel that netbeans ide's fonts are not smooth enough comparing to gnome (or maybe there is something wrong with my eyes)

    so is it possible to enable subpixel smoothing in java apps globally?

    thanks in advance
    Attached Images Attached Images

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Beans
    2,185
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: java and smooth fonts

    Have a look at this: http://www.jonathanhfisher.co.uk/b2/?p=93
    It's about Mac OS X, but probably the response by Martin Neumann is also useful on Ubuntu:
    from Chet Haase’s Blog (http://weblogs.java.net/blog/chet/ar...nt_fixe.html):

    Q. How can I specify the text antialiasing/font smoothing settings to be used by Swing in applications on Java SE 6?

    A. This is generally is a question from users of KDE or Windows 2000 who would like to use LCD subpixel text. There’s no programmatic way to do it in Java SE 6 (However if you know what you want you can set a system property :

    java -Dawt.useSystemAAFontSettings=lcd
    which request to use LCD subpixel text in the most common subpixel configuration There are a few more useful values for this property as follows :

    “false” corresponds to disabling font smoothing on the desktop.
    “on” corresponds to Gnome Best shapes/Best contrast (no equivalent Windows desktop setting)
    “gasp” corresponds to Windows “Standard” font smoothing (no equivalent Gnome desktop setting)
    “lcd” corresponds to Gnome’s “subpixel smoothing” and Windows “ClearType”

    I hope this works for you…
    Ubuntu 12.04

  3. #3
    Join Date
    Jan 2006
    Beans
    1,237
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: java and smooth fonts

    because netbeans has its own executable I tried

    export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=lcd'

    but it doesn't seem to have an effect

  4. #4
    Join Date
    Dec 2004
    Location
    Roxas City, Philippines
    Beans
    42
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: java and smooth fonts

    Quote Originally Posted by cb951303 View Post
    because netbeans has its own executable I tried

    export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=lcd'

    but it doesn't seem to have an effect
    Go into your Netbeans install directory. Look for the etc directory and open the file named netbeans.conf in your favorite text editor.

    Add the following to your netbeans_default_options:

    Code:
    -J-Dawt.useSystemAAFontSettings=lcd

  5. #5
    Join Date
    Nov 2005
    Location
    Netherlands
    Beans
    29
    Distro
    Ubuntu 6.10 Edgy

    Re: java and smooth fonts

    That's the only thing I don't like about netbeans. I guess we're stuck with java's font rendering engine, instead of the OS one.

    I use slight hinting in Gnome and there is no setting in java that looks like that.
    My blog : http://linuxeverywhere.org
    For commercially supported solutions : http://www.robas.com

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •