Skip to content

Instantly share code, notes, and snippets.

@leemour
Last active October 6, 2018 06:42

Revisions

  1. leemour revised this gist Jun 6, 2013. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions FontFix RubyMine
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,9 @@
    # Change Java Runtime:
    sudo update-alternatives --config java

    # Delete Open-JDK
    sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\*

    # Change fonts - remove hinting:
    http://askubuntu.com/questions/32624/ugly-fonts-in-netbeans-how-can-i-make-it-use-the-system-font

  2. leemour revised this gist May 21, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion FontFix RubyMine
    Original file line number Diff line number Diff line change
    @@ -28,7 +28,7 @@ I had to do the following afterwards:
    $ sudo rm /etc/fonts/conf.avail/52-infinality.conf
    $ sudo ln -s /etc/fonts/infinality/infinality.conf /etc/fonts/conf.avail/52-infinality.conf

    To use Windows 7 like font rendering do the following (Leemour uses osx2 or linux or smth else but not win7):
    To use Windows 7 like font rendering do the following (Leemour uses osx2 but not win7):
    $ sudo /etc/fonts/infinality/infctl.sh setstyle win7
    Set USE_STYLE to "WINDOWS7" in /etc/profile.d/infinality-settings.sh

  3. leemour revised this gist May 21, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion FontFix RubyMine
    Original file line number Diff line number Diff line change
    @@ -28,7 +28,7 @@ I had to do the following afterwards:
    $ sudo rm /etc/fonts/conf.avail/52-infinality.conf
    $ sudo ln -s /etc/fonts/infinality/infinality.conf /etc/fonts/conf.avail/52-infinality.conf

    To use Windows 7 like font rendering do the following:
    To use Windows 7 like font rendering do the following (Leemour uses osx2 or linux or smth else but not win7):
    $ sudo /etc/fonts/infinality/infctl.sh setstyle win7
    Set USE_STYLE to "WINDOWS7" in /etc/profile.d/infinality-settings.sh

  4. leemour revised this gist May 21, 2013. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions FontFix RubyMine
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,11 @@ sudo update-alternatives --config java
    # Change fonts - remove hinting:
    http://askubuntu.com/questions/32624/ugly-fonts-in-netbeans-how-can-i-make-it-use-the-system-font

    # Change RubyMine AntiAliasing first:
    Add the following options to the /home/leemour/RubyMine-5.4/bin/rubymine64.vmoptions
    -Dawt.useSystemAAFontSettings=lcd
    -Dswing.aatext=true

    # Install OpenJDK with FontFix
    http://youtrack.jetbrains.com/issue/IDEA-57233

  5. leemour created this gist May 21, 2013.
    50 changes: 50 additions & 0 deletions FontFix RubyMine
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,50 @@
    # Change Java Runtime:
    sudo update-alternatives --config java

    # Change fonts - remove hinting:
    http://askubuntu.com/questions/32624/ugly-fonts-in-netbeans-how-can-i-make-it-use-the-system-font

    # Install OpenJDK with FontFix
    http://youtrack.jetbrains.com/issue/IDEA-57233

    Hello everybody
    I'm using Linux Mint 14.1 and applied the infinality font patch as well as the OpenJDK fontfix patch.
    I did the following steps:

    (1) install freetype
    $ sudo apt-get install libfreetype6

    (2) install infinality patch (https://launchpad.net/~no1wantdthisname/+archive/ppa)
    $ sudo add-apt-repository ppa:no1wantdthisname/ppa
    $ sudo apt-get update
    $ sudo apt-get install fontconfig-infinality

    I had to do the following afterwards:
    $ sudo rm /etc/fonts/conf.avail/52-infinality.conf
    $ sudo ln -s /etc/fonts/infinality/infinality.conf /etc/fonts/conf.avail/52-infinality.conf

    To use Windows 7 like font rendering do the following:
    $ sudo /etc/fonts/infinality/infctl.sh setstyle win7
    Set USE_STYLE to "WINDOWS7" in /etc/profile.d/infinality-settings.sh

    (3) install font fixed OpenJDK (https://launchpad.net/~no1wantdthisname/+archive/openjdk-fontfix)
    $ sudo add-apt-repository ppa:no1wantdthisname/openjdk-fontfix
    $ sudo apt-get update
    $ sudo apt-get install openjdk-7-jdk

    To use this JDK only for IntelliJ, prepend this line to bin/idea.sh:
    IDEA_JDK="/usr/lib/jvm/java-1.7.0-openjdk-amd64"

    (4) JVM options
    Add the following options to the .vmoptions file of IntelliJ
    -Dawt.useSystemAAFontSettings=lcd
    -Dswing.aatext=true

    (5)
    Perform a reboot

    (6)
    See the result with default Darcula theme in attachment.

    # Another alternative
    https://github.com/Helbrass/openjdk-fontfix