[SOLVED] How to turn on font hinting and font anti-aliasing?

I wanted to configure hinting and anti-aliasing, although I've never used fontconfig before.
I had been reading https://wiki.archlinux.org/index.php/font_configuration and I have found some contradictions.
First it says "Configuration can be done globally through /etc/fonts/fonts.conf" and then immidiatelly after that it says "This file is replaced during fontconfig updates and shouldn't be edited".
Then it says per-user path ~/.fonts.conf is deprecated in turn for $XDG_CONFIG_HOME/fontconfig/fonts.conf with no indication where should this "$XDG_CONFIG_HOME" actually be.
I get that I am supposed to put my custom XML "somewhere":
<match target="font">
<edit name="hinting" mode="assign"><bool>true</bool></edit>
<edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
<edit name="antialias" mode="assign"><bool>true</bool></edit>
</match>
But I have no idea where?
Last edited by choosegoose (2015-02-02 23:22:56)

Normally the $XDG_CONFIG_HOME variable points to .config in your /home/<user> directory.
So the path that you would use would be: /home/<user>/.config/fontconfig
Please note that it's DOT config. 
HTH

Similar Messages

  • How can I force font anti-aliasing globally?

    Hi, I'm Korean.
    Latin fonts has embeded bitmap and so looks good in small size(As you know, system disable anti-aliasing when font size is small). However, official fonts for Korean and Japanese has no embeded bitmap and looks v-e-r-y ugly. Look this.
    Therefore I used FontRouter to force system using font anti-aliasing every size. But FontRouter crashes texts of application based on Qt (Only Qt...). So I'm searching another solution.

    Is there anyone who knows how to make system render anti-aliased fonts?

  • TS3697 I've this problem and don't know what to do , i'n trying to follow these steps so i'm asking how to turn off photo syncing and to sync my device

    I've this problem and don't know what to do , i'n trying to follow these steps so i'm asking how to turn off photo syncing and to sync my device

    As the article you attached says, "Within iTunes, select the device, then select the Photos pane and turn off syncing."
    In other words, once you click on the device in iTunes on your computer (with the iPhone attached), you then click "Photos" near the top and uncheck the "sync photos" box.
    Then you sync your device by clicking something in the lower right (it probably says "Apply", but it might say "Sync").

  • JDeveloper Code Editor doesn't do ClearType font anti-aliasing

    I can't seem to get the Code Editor in JDeveloper (11.1.1.5.0) to do ClearType sub-pixel font anti-aliasing. Everything else in the IDE is doing proper sub-pixel anti-aliasing, it's only the Code Editor that's not doing it. It's doing "normal" pixel anti-aliasing which isn't nearly as good and still leaves the font looking quite jaggy.
    I've got the following lines in my jdev.conf:
    AddVMOption  -Dswing.aatext=true
    AddVMOption  -Dawt.useSystemAAFontSettings=lcd
    And I've checked "Enable Text Anti-Aliasing" in Preferences->Code Editor->Display.
    Is sub-pixel antialiasing in the JDeveloper code editor possible? If so, how? I'm running Windows 7 btw.

    No problem Timo.
    I don't think it's worth opening an SR for this. It looks like sub-pixel anti-aliasing isn't supported in the JDeveloper Code Editor, which is a shame, because that's the place where it's most needed.
    Michael.

  • [SOLVED] How to turn on composing in KDE?

    I installed KDE but I do not see how to turn desktop composing fancy effects on. There is nothing like the Settings top level entry in the main KDE menu. Most likely, I did not install some package, but I cannot figure out which one. Proposals?
    Last edited by Octagon (2010-03-20 09:24:07)

    flamelab wrote:
    Reinstall kde
    pacman -S kde
    This downloaded kdeaccessibility and kdetoys, but did not bring the settings back.
    As the last resort, I deleted .kde4 and got the settings back. So, it could be an upgrade problem, or something I did.
    So, thinking about the latter option, I let this thread to stay unsolved for a while and wonder:
    Is there a normal - through menues and clicks - way to delete "System Settings" from the  Computer tab of the Application Launcher?

  • How to turn of menu bar and window decoration of Forms 11g Rel2?

    According to Forms documentation, one can turn off menu bar and window decoration.
    How can that be done?.
    Best regards, Luis ...:)=

    From the documentation (Forms Deployment Guide), see Section 3.4.3. Refer to "guiMode"
    http://docs.oracle.com/cd/E38115_01/doc.111210/e24477/basics.htm#BABGEGBC

  • How to turn off Apple TV and use my direct tv

    We have direct tv and Apple TV.  I do not know how to turn off the Apple TV to watch direct tv and the movies my granddaughters are watching are in Spanish and I have no idea who to get them in English can anyone help?

    Your Apple TV is connected to a different input on your TV, use your HDTV's remote to switch to the input in which direct tv is connected.
    As for the movies, are these from iTunes?

  • How to turn on both LAN and Wireless T430

    I need both my LAN and wireless enabled at the same time.  Can I turn them both on using Think Advantage?  I believe our IT dept has uninstalled any ThinkAdvantage software.  Which ThinkAdvantage software should I download and where do I turn both the wireless and the LAN on at?  Thank you

    Windows doesn't make it easy for you to have different processes access different networks simultaneously.
    You can force it to prioritize one over another as so:https://answers.microsoft.com/en-us/windows/forum/windows_7-networking/wired-and-wireless-connection...
    But it's all or nothing; you use either-or.
    W520: i7-2720QM, Q2000M at 1080/688/1376, 21GB RAM, 500GB + 750GB HDD, FHD screen
    X61T: L7500, 3GB RAM, 500GB HDD, XGA screen, Ultrabase
    Y3P: 5Y70, 8GB RAM, 256GB SSD, QHD+ screen

  • [SOLVED] Update broke font anti-aliasing

    I've been updating daily, and there were just a few updates today (Sunday, 22 January).  However, almost immediately my fonts went ugly.  I tried rebooting, but it didn't help.  Anti-aliasing doesn't work anymore in Xfce or KDE, which is all I tried.
    I did notice there was a udev update, but there were also some library updates that I can't remember.  I have no idea what broke.
    Any insights or suggestions?  The system is ugly enough that it's hard to read, so I'm moving over to an Arch I haven't updated today.
    Last edited by eerok (2012-01-22 20:18:08)

    Solved.  For some reason I suddenly needed to add a hand-rolled ~/.fonts.conf -- one might have hoped that the Xfce settings would actually work for the Xfce panel and menus, but I guess not.

  • Font Anti-Aliasing Issues in HTML/Ajax based Air Applications

    It seems that the font-renderer in HTML/Ajax based Air Applications is using some kind of sub-pixel font renderer that is overriding and vastly inferior to the standard Windows ClearType, or any Apple based option as well.  This problem is particularly noticable with light text on a dark background, and made worse the smaller the text is.  I've put together an example image explaining exactly what I mean at: http://regator.com/fontRendering.png   (it's a large image 1126 x 1500 px)
    My example shows two fonts at four different sizes rendered in an HTML Air App vs the default Windows Cleartype, as well as using Safari to show the Font style anti-aliasing.  In all cases the HTML Air App rendering is far more difficult to read, and in many cases severely distorts the color of the text in a way that other subpixel algorithms do not.  As far as I can find after literally hours of googling and searching there's no way to override this in HTML based applications.  Is there any solution to this, or a planned fix for the renderer?  Other than this rendering issue, the HTML interface for creating Air apps is absolutely brilliant, this is just making my finished product look significantly less polished than it otherwise would if the text were more readable.
    Thanks.

    Dear caturner81, dear Adobe,
    is there a solution to this problem? I'd really love to fix the aliasing thing in Air/HTML!

  • Device Font Anti-aliasing on Windows

    Hi,
    I'm using a device font in a Flex 4.1 Preloader.
    I'm using the following textformat ...
    var percentLoadedFormat:TextFormat = new TextFormat( "_typewriter", 20, 0x333333, null, null, null, null, null, TextAlign.CENTER );
    ... to style a TextField using percentLoadedText.defaultTextFormat = percentLoadedFormat;
    I get a nice looking monospace/typewriter front in Mac browsers, but in windows (FFox/IE7/Chrome) the text is not Antialiased and looks awful.
    The text is not masked and is positioned at whole pixels.
    ( PC / FFox 3.6.8 at 200 % )
    ( Mac / FFox 3.6.8 at 200 % )

    Hi,
    So Anti-aliasing of device fonts is not cross-platform?
    Embed the font or try Courier
    I can't use an embedded font as it is a preloader. I would love to use Courier, only Macs tend to have Courier while PCs have Courier New and as far as I know there is no way to declare a font stack in Flash or is there?

  • SwingTextField font anti-aliasing

    Hi,
    How to force anti-aliasing in javafx.ext.swing.SwingTextField?
    Lukasz

    See [JavaFX Text Component|http://blogs.sun.com/tor/entry/javafx_text_component] blog entry. There is a word about text AA. See also comments.

  • [SOLVED] How to turn off monitor at CLI

    Hi
        I've been trying to find a way to turn off my monitor, but the solutions I've found were almost all for X environment.
        The best hint I've got was add following lines to /etc/rc.local:
    setterm -blank 1
    setterm -powersave on
    setterm -powerdown 1
    With that, monitor was suppose to blank screen after 1 minute and, after another 1 minute, shutdown. But it only blanks and nothing more. Without the first line: "setterm -blank 1", it just don't do anything.
        Does anybody has idea of what else should I try?
        Thanks in advance.
    Last edited by vinicius (2009-02-27 02:48:43)

    Hi, Nezmer
    Even with aliases, I would have to type von with monitor turned off.
    I've done a script, witch is not a perfect solution, but works fine.
    monitor_off:
    #!/bin/bash
    # Check if X is running or not, turn off monitor, #
    # wait for a key press and turn it on again. #
    grep_result_file=$PWD'/x_running'
    # Check if X is running.
    ps -e | grep -e "\bX\b" > $grep_result_file
    ps -e | grep -e "\bxorg\b" >> $grep_result_file
    ps -e | grep -e "\bxserver\b" >> $grep_result_file
    ## If you want to check result file, uncomment following lines.
    #echo "===== $grep_result_file - begin ====="
    #cat $grep_result_file
    #echo "===== $grep_result_file - end ====="
    if [ ! -s $grep_result_file ] || [[ $(tty) =~ tty ]] || [[ $(tty) =~ vc ]]; then
    echo 'Detected X not runnig or you are at console...'
    if [ $UID -ne 0 ]; then
    echo 'You need super user privileges to run this script at console.'
    echo 'Rerun as super user or start X and run from a terminal.'
    exit 0
    fi
    turn_off='vbetool dpms off'
    turn_on='vbetool dpms on'
    else
    echo 'Detected X running...'
    turn_off='xset dpms force off'
    fi
    echo 'Turning off monitor...'
    $turn_off
    echo 'Waiting for a key press...'
    read -n1 -s
    echo 'Turning on monitor...'
    $turn_on
    rm $grep_result_file
    echo 'Finished: monitor_off'
    It checks if X is running or not because at X environment vbetool was a little slow, at least for me.
    That's it!
    I hope this could be useful for someone else.
    Thank you for helping, guys.
    Vinícius
    P.S.: I'm setting this thread as solved, but any suggestion about the script is welcome.

  • [SOLVED] How to reset system font settings

    HI All,
    In my efforts to get decent looking fonts, I have somehow ended up with a system where the fonts are always sub-optimal no matter what I do.   I installed DejaVu-ttf and also the Infinality font set.
    I'm not sure how Infinality is supposed to work, but the impression I got from reading instructions is that it is a drop-in replacement of the system fonts, but now that I have mucked with things too much I'm not sure I'm seeing the best result I can get.
    Is there a way to just reset my KDE font config to the default (hopefully without resetting my entire desktop)?
    Thanks,
    Chris
    Last edited by cgrif (2013-07-20 04:20:06)

    Thank you Boohomil,
    I set up the .Xresources with the code you included, but even if I xrdb it directly, I cannot see the xft stuff in the output of env.  Not sure what's wrong with that. 
    However, I set up everything else the way you recommended and things are looking a bit better.   I actually have messed with the KDE font settings, but following cfr's advice, I just set everything to Liberation as in the xml code.   
    For some reason the fonts look much better when I run Gnome than KDE, which bothers me immensely.  I moved to Arch because I want to learn to have control of everything, but it looks like I'm kind of stuck on the fonts!   No worries, I'll keep chipping away at it as I have time.   
    Thanks a lot,
    Chris
    bohoomil wrote:
    First of all, I'm not sure what your KDE font settings look like. I believe you've left everything as is, so open your control panel and duplicate the values from /etc/fonts/conf.d/10-base-rendering.conf in the appropriate section. This should include hintstyle=slight, antialias=true, subpixel order=rgb, dpi=96. You may try using hintstyle=full if necessary.
    Next, check your xft settings. You should see the following:
    $ env | grep Xft
    Xft.antialias: 1
    Xft.autohint: 0
    Xft.dpi: 96
    Xft.hinting: 1
    Xft.hintstyle: hintfull
    Xft.lcdfilter: lcddefault
    Xft.rgba: rgb
    If the output is different, put the values above to your .Xresources file and make sure it gets loaded with your desktop. This should basically duplicate the values you have already set in your KDE control panel.
    Next, check if your fontconfig settings are loaded properly. Simply run 'env | grep INFINALITY' and if you get a list of entries starting with INFINALITY_FT_, then everything is OK.
    Finally, try changing your default fonts. DejaVu is fine as a backup family, but using it as a base one is not a good idea. If you have access to Win 7/8 fonts, use them. If not, check Liberation, ChromesOS or Droid families. Install them all and set the defaults in $HOME/.config/fontconfig/conf.d/65-latin.conf:
    <?xml version="1.0"?>
    <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
    <fontconfig>
    <!-- ## serif ## -->
    <alias>
    <family>serif</family>
    <prefer>
    <family>Liberation Serif</family>
    </prefer>
    </alias>
    <!-- ## sans-serif ## -->
    <alias>
    <family>sans-serif</family>
    <prefer>
    <family>Liberation Sans</family>
    </prefer>
    </alias>
    <!-- ## monospace ## -->
    <alias>
    <family>monospace</family>
    <prefer>
    <family>Liberation Mono</family>
    </prefer>
    </alias>
    </fontconfig>
    If you are going to use Windows fonts and don't want to change anything, you don't need this file. By the way, you can find it along with other examples in the infinality-bundle documentation.

  • [SOLVED]How to install this font : it doens't seem available for Linux

    Hi everyone,
    I'm currently running Gnome, and I'm trying to have the same theme than here : http://gnome-look.org/content/show.php/ … ent=108433. I've installed and used the Hydra theme : no problems with that.
    The only thing I miss now is his font, I read the comments, and it's said the font used is "Zero Threes", they give a link (it's on page 2 if you want to check) : http://www.urbanfonts.com/fonts/Zero_Threes.htm
    The problem is the font seems to be available on Mac and Windows, but I coulnd't find it for Linux. But the guy seem to have Linux and he's using it, so could somebody explain to me how can I get the font for linux ? Or if there is a way to install a Windows or a Mac font in Linux ?
    Thanks you in advance !
    Last edited by Dreepser (2009-08-29 11:53:00)

    t4k1t wrote:The font is still only ttf so just download the win-version and copy the *.ttf file into your ~/.fonts directory.
    Or, to make them available to all the users copy them to /usr/share/fonts/truetype directory.

Maybe you are looking for