View Full Version : Gimp: No change in fonts
dannymichel
November 11th, 2013, 07:34 AM
is it normal for no changes when changing hinting on fonts in gimp http://d.pr/v/2Bsc ?
dannymichel
November 11th, 2013, 10:15 AM
I found out it's because I turned hinting off in ~/.fonts.conf. Any way to fix this while still having hinting off in that file? I need that file for Chrome to obey my 'no hinting'.
SeijiSensei
November 11th, 2013, 06:03 PM
Use a script to launch each program that selects the correct configuration.
Create two copies of fonts.conf in your home directory, one with hinting and one without. Let's call them fonts-hinting.conf and fonts-nohinting.conf. Then write a script to launch GIMP with hinting enabled that looks something like this:
#!/bin/bash
# launch GIMP with font hinting enabled
cd ~
rm -f .fonts.conf
ln -s fonts-hinting.conf .fonts.conf
gimp-2.8 $1
exit 0
The script for Chrome would look identical except that the symbolic link would use fonts-nohinting.conf instead.
Become the root user with sudo and place the scripts in /usr/local/bin. Mark both of them world-executable with "chmod a+x". If you want them to run from the menus, you'll need to edit the launchers to run the scripts rather than the programs themselves.
dannymichel
November 11th, 2013, 06:41 PM
Thank you. will i have to do this with every app that might want to use hinting, or is it just Gimp?
SeijiSensei
November 11th, 2013, 08:10 PM
Well if you only want to disable hinting in Chrome, then I'd make the default be hinting and just set up a script to reconfigure for Chrome. I don't use that myself, so I'm guessing about what the binary executable might be called, so let's just say it is called "chrome".
#!/bin/bash
# turn off hinting in Chrome only
cd ~
rm -f .fonts.conf
ln -s fonts-nohinting.conf .fonts.conf
chrome $1
# restore hinting when done
rm -f .fonts.conf
ln -s fonts-hinting.conf .fonts.conf
exit 0
dannymichel
November 12th, 2013, 06:08 AM
so just make a file called ~/Desktop/script.sh
and do
#!/bin/bash
# turn off hinting in Chrome only
cd ~
rm -f .fonts.conf
ln -s fonts-nohinting.conf .fonts.conf
chromium-browser $1
# restore hinting when done
rm -f .fonts.conf
ln -s fonts-hinting.conf .fonts.conf
exit 0?
SeijiSensei
November 13th, 2013, 04:22 PM
Danny, isn't that exactly the same as my script with chromium as the browser? You said you were using Chrome which is the branded Google version. If you are using chromium, then yes, that is the correct script.
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.