Blurred Java Webstart fonts

Discussion in 'Mac Programming' started by whitehexagon, Jun 10, 2008.

  1. macrumors regular

    whitehexagon

    #1
    If I run my application standalone, all the Swing fonts are nice and crisp. When I package it up and run it as a Webstart, the font's are more blurred and not easy to read. Any seen similar bahavior or any ideas what might cause this? Seems fine when I test the webstart on Windows.

    Cheers
    Peter

    Leopard, Java 1.5
     
  2. macrumors 603

    jeremy.king

    #2
    what L&F are you using? Can you post screenshots?
     
  3. macrumors regular

    whitehexagon

    #3
    It's Metal L&F but using some customization.

    These are swing button's, with custom colors and fonts.
    Standalone:
    [​IMG]
    Webstart
    [​IMG]
     
  4. macrumors regular

    whitehexagon

    #4
    Just as an update for anyone else facing this problem.

    I found a couple of jvm flags that have improved things slightly:

    <property name="apple.awt.textantialiasing" value="off" />
    <property name="apple.awt.antialiasing" value="off" />

    this flag also seems to have an impact:

    <property name="apple.awt.graphics.UseQuartz" value="false" />

    Although I'm still not able to get consistant looking fonts between webstart and standalone on Leopard. But at least the small fonts are now more readable.

    Oh and I also tried packaging the fonts inside the application in case that was the problem, but it wasn't.
     

Share This Page