Results 1 to 3 of 3

Thread: Font in IntelliJ IDEA

  1. #1
    Join Date
    Jan 2014
    Beans
    7

    Unhappy Font in IntelliJ IDEA

    I installed idea 13.1 and Oracle JDK 1.8. When I launch idea I see very bad font it is ugly. How I can fix this. Ubuntu 14.04 x64
    And I don`t want to uninstall Oracle JDK 1.8.

  2. #2
    Join Date
    Jul 2011
    Beans
    42

    Re: Font in IntelliJ IDEA

    first off all – need to install OpenJDK with Fonts Patch.

    wget http://urshulyak.com/jdk-8u5-tuxjdk-b08.tar.gz
    tar -zxvf jdk-8u5-tuxjdk-b08.tar.gz
    sudo mv jdk-8u5-tuxjdk-b08 /usr/lib/jvm
    rm jdk-8u5-tuxjdk-b08.tar.gz




    And after need to start idea with this JDK using the following script:






    #!/bin/sh
    # change to your location
    IDEA_HOME=/opt/idea


    export JAVA_HOME=/usr/lib/jvm/jdk-8u5-tuxjdk-b08/


    # Note: Can modify $IDEA_HOME/bin/idea{,64}.vmoptions
    # instead of setting here.
    # "-Dawt.useSystemAAFontSettings=on" seems worse to me
    # "-Dsun.java2d.xrender=true" makes fonts darker
    export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=lcd \
    -Dsun.java2d.xrender=true"


    # Having this set makes menu font size smaller (wtf?)
    export GNOME_DESKTOP_SESSION_ID=this-is-deprecated
    # unset GNOME_DESKTOP_SESSION_ID


    exec $IDEA_HOME/bin/idea.sh "$@"








    Only note that need to change IDEA_HOME location for your path of idea

  3. #3
    Join Date
    Oct 2006
    Location
    California
    Beans
    Hidden!

    Re: Font in IntelliJ IDEA

    Hi,

    What do you mean by ugly? When it comes to font rendering, opinion is incredibly crucial, so maybe post a screenshot so we can take a look. That said, type this into a terminal
    Code:
    export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
    idea.sh
    Or replace idea.sh with whatever the IntelliJ command is (you can find out by launching it and checking the system monitor)

    If that improves it, make the change persistent by appending the first command to /etc/profile.d/jre.sh.

    If that's not its location, do a
    Code:
    find /etc/ -name jre.sh
    And edit the correct file.

Tags for this Thread

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
  •