Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Ugly fonts in Java applications

  1. #1

    Default Ugly fonts in Java applications

    Hi there,

    I have installed Netbeans IDE on my Netbook and on my PC (openSUSE 11.4 32 bit and openSUSE 11.4 64 bit). On both has the UI a ugly font. I don't really know how to change it.
    I already searched the web but I couldn't find anything related.
    Have a look how it looks like:
    Uploaded with ImageShack.us

    And then the "original": http://lizards.opensuse.org/wp-conte...6/netbeans.png
    OK, this picture is already 3 years old but I don't think that Oracle would change Netbeans UI font to look creepy.

    And ideas how I can change it to normal?


    Thanks!

  2. #2
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Ugly fonts in Java applications

    On 06/24/2011 09:06 AM, Ctwx wrote:
    >
    > Netbeans IDE ... how I can change it ... ?


    open the netbeans setup, find the font settings section, and change it
    to something un-ugly to you.

    --
    DD
    Caveat
    Hardware
    Software
    24 June: Sunrise 4:36 AM, Sunset 10:03 PM

  3. #3

    Default Re: Ugly fonts in Java applications

    Thank you. I found the configuration but it only changes the font in the editor. The UI itself remains ugly. It is like the font that is required is not installed. But there should be a way to change Javas global default font? Like in KDE -> Systemsettings -> Apprearance -> Fonts.

  4. #4
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Ugly fonts in Java applications

    On 06/24/2011 11:06 AM, Ctwx wrote:
    >
    > I found the configuration but it only changes the font in the
    > editor.


    oh....i don't know how to do that...but, i _guess_ it is a truetype font
    (*.ttf)...

    *maybe* if you use YaST to install 'fetchmsttfonts' it will then find
    the file it is looking for (you said "It is like the font that is
    required is not installed".)

    but, i guess there *must* be a java way to tell it which font to
    use...do you know any programmers?

    one of them might know how to find that in the java documentation...you
    HAVE looked for you answer, right??

    have you tried something _like_ this:

    http://www.google.com/search?q=globa...font+selection

    i say _like_ that because maybe a different search string will find
    better info, like:

    http://www.google.com/search?q=how+t...bean+menu+font turns up
    this interesting looking hit:

    http://netbeanside61.blogspot.com/20...font-size.html

    which i think answers your question (if using windows) but it should be
    not a big problem to find and edit the netbeans.conf file on your
    openSUSE, should it??

    that is what any programmer could do ;-)

    --
    DD
    Caveat
    Hardware
    Software
    24 June: Sunrise 4:36 AM, Sunset 10:03 PM

  5. #5

    Default Re: Ugly fonts in Java applications

    Quote Originally Posted by DenverD View Post
    *maybe* if you use YaST to install 'fetchmsttfonts' it will then find
    the file it is looking for (you said "It is like the font that is
    required is not installed".)
    Thank you! Now, the UI looks great.

    Quote Originally Posted by DenverD View Post
    but, i guess there *must* be a java way to tell it which font to
    use...do you know any programmers?
    Yes, there should be. I think it has something to do with /usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/fontconfig.SuSE.properties. I have found something in the Archlinux Wiki: https://wiki.archlinux.org/index.php...#Default_fonts
    Somehow, the Lucida font is not delivered and not available in openSUSE (search with locate for lucida and I also search in the repos for it. No results.)

    Quote Originally Posted by DenverD View Post
    one of them might know how to find that in the java documentation...you
    HAVE looked for you answer, right??
    I already did. But they explain things with fontconfig.properties. But there would be a problem I thought, since every time SuSEconfig --module fonts was executed, it overwrites fontconfig.SuSE.properties. So, there has to be an other place where the fonts are configure. This must be somewhere in /etc/fonts but I couldn't find the right place.

    Quote Originally Posted by DenverD View Post
    have you tried something _like_ this:
    global java font selection - Google Search
    This is for programmers who program with Java not for users. :/

    It does not help if I change anything in Netbeans since this problem is not related with NetBeans. It's and Java/openSUSE problem. The font seems to be missing. Now, after installing fetchmsfonts it works. It probably takes an alternative font. Arial or whatever is defined. But I'd rather take Linux fonts. I like DejaVu.

    Quote Originally Posted by DenverD View Post
    which i think answers your question (if using windows) but it should be
    not a big problem to find and edit the netbeans.conf file on your
    openSUSE, should it??
    As said, not a NetBeans problem. :/ This does not solve the problem, it only avoids them. I like to solve this problem. I don't think I'm the only one who had this problem.


    But thank you for your answer. At least, it looks much better than before.

  6. #6
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Ugly fonts in Java applications

    You ran into a general openJDK problem, where it has a problem with font
    renedering, you can improve that but I did too long ago so I forgot the
    exact steps.
    If you remove openJDK and replace it with the java-1_6_0-sun (and related
    packages like java-1_6_0-sun-devel since you use a programming environment)
    your problem should be solved or at least it should be better.
    Is it an option for you to use the sun/oracle version of java 1.6?

    --
    PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.4 | GeForce
    9600 GT | 4GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.4 | nVidia
    ION | 3GB Ram

  7. #7
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Ugly fonts in Java applications

    On 06/24/2011 12:36 PM, Ctwx wrote:
    >
    > DenverD;2357574 Wrote:
    >> *maybe* if you use YaST to install 'fetchmsttfonts' it will then find
    >> the file it is looking for (you said "It is like the font that is
    >> required is not installed".)

    > Thank you! Now, the UI looks great.


    welcome.. fetchmsfonts (fetch MS Fonts) installs a pile of Microsoft
    True Type [tm] fonts they released to free distribution some years back..

    --
    DD
    Caveat
    Hardware
    Software
    24 June: Sunrise 4:36 AM, Sunset 10:03 PM

  8. #8

    Default Re: Ugly fonts in Java applications

    Quote Originally Posted by martin_helm View Post
    You ran into a general openJDK problem, where it has a problem with font
    renedering, you can improve that but I did too long ago so I forgot the
    exact steps.
    If you remove openJDK and replace it with the java-1_6_0-sun (and related
    packages like java-1_6_0-sun-devel since you use a programming environment)
    your problem should be solved or at least it should be better.
    That's it! Now I have the sun/oracle package installed and it works without the Microsoft fonts. Thank you very much for your answer.^^

    Quote Originally Posted by martin_helm View Post
    Is it an option for you to use the sun/oracle version of java 1.6?
    Of course it is. It doesn't matter, as long as it works.

    Summary:
    So for everybody who's interested. You can either install fetchmsttfonts to solve this problem or you can install the Oracle/Sun Java package java-1_6_0-sun.

  9. #9
    Join Date
    Mar 2009
    Location
    Bangkok
    Posts
    431

    Default Re: Ugly fonts in Java applications

    I got fetchmsttfonts and the fonts are somewhat better now but still far from being easy on the eye.

    What are the implications of installing Oracle/Sun Java package vs OpenJDK? I should be able to choose fonts and tweak anti-aliasing but what would it do to my Suse install? Should I uninstall OpenJDK first? Will by Icedtea plugin work? What about the updates?

    Switching Java provider is a kind of an important decision, I'm afraid it might break things atm working otherwise perfectly well.

  10. #10
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Ugly fonts in Java applications

    On 2012-07-13 13:16, Stan Ice wrote:
    > What about the updates?


    No updates.

    Sun changed the licensing and the java from Sun can not be supplied by
    openSUSE, you have to install it manually from the Sun site.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)



Page 1 of 2 12 LastLast

Posting Permissions

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