is it normal for no changes when changing hinting on fonts in gimp http://d.pr/v/2Bsc ?
is it normal for no changes when changing hinting on fonts in gimp http://d.pr/v/2Bsc ?
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'.
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:
The script for Chrome would look identical except that the symbolic link would use fonts-nohinting.conf instead.Code:#!/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
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.
Last edited by SeijiSensei; November 11th, 2013 at 06:08 PM.
If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.
Blog · Linode System Administration Guides · Android Apps for Ubuntu Users
Thank you. will i have to do this with every app that might want to use hinting, or is it just Gimp?
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".
Code:#!/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
If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.
Blog · Linode System Administration Guides · Android Apps for Ubuntu Users
so just make a file called ~/Desktop/script.sh
and do
?Code:#!/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
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.
If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.
Blog · Linode System Administration Guides · Android Apps for Ubuntu Users
Bookmarks