Skip to content

Instantly share code, notes, and snippets.

@nkonev
Last active March 28, 2017 13:37
Show Gist options
  • Select an option

  • Save nkonev/e5947e6aeb863a1fb22711515776a414 to your computer and use it in GitHub Desktop.

Select an option

Save nkonev/e5947e6aeb863a1fb22711515776a414 to your computer and use it in GitHub Desktop.
fix fedora 25 font.md

Create & Edit

vim /etc/fonts/local.conf

https://wiki.archlinux.org/index.php/font_configuration#Subpixel_rendering

https://www.freedesktop.org/software/fontconfig/fontconfig-user.html

http://docs.oracle.com/javase/6/docs/technotes/guides/2d/flags.html

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
    <match target="font">
        <edit name="antialias" mode="assign">
            <bool>true</bool>
        </edit>
        <edit name="autohint" mode="assign">
            <bool>false</bool>
        </edit>
        <edit name="embeddedbitmap" mode="assign">
            <bool>false</bool>
        </edit>
        <edit name="hinting" mode="assign">
            <bool>true</bool>
        </edit>
        <edit name="hintstyle" mode="assign">
            <const>hintfull</const>
        </edit>
        <edit name="lcdfilter" mode="assign">
            <const>lcdnone</const>
        </edit>
        <edit name="rgba" mode="assign">
            <const>none</const>
        </edit>
    </match>
</fontconfig>

reboot your machine

download Intellij with or without jvm

Edit bin/idea64.vmoptions

-Dawt.useSystemAAFontSettings=true

https://blog.jetbrains.com/idea/2015/06/intellij-idea-15-eap-is-open/#comment-361296

File -> Settings -> Appearance & Behavior -> Appearance -> Antialiasing -> IDE|Editor := Greyscale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment