It turns out that the correct solution IS to create a file called local.conf in 
\Program Files\GIMP-2.0\etc\fonts - although Mario dismissed that in his post 
above.

Apparently, you should not edit fonts.conf (as suggested above) because it is a 
dynamically generated file and will be replaced by a new version anytime you 
make a configuration change and your edits will be lost. However, the font 
mamanager also parses local.conf and anything it finds there over-rides the 
matching settings in fonts.conf.

The trick is that local.conf has to be a propoerly formatted XML file - it must 
contain the lines:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

  <!-- settings go here -->

</fontconfig>

You can then copy whatever settings you want to over-ride from fonts.conf, 
paste it following the "<!-- settings go here -->" line and then edit it how 
you want. For our purposes, we need to over-ride the <cachedir> setting. So, 
this is what my local.conf file looks like (for GIMP 2.6 on Windows 7):

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

  <!-- settings go here -->
  <cachedir>~/.gimp-2.6/fonts/cache</cachedir>

</fontconfig>

The next time GIMP starts, it will create its font cache in 
\Users\<user-name>\.gimp-2.6\fonts\cache and this shouldn't get cleared out 
with your temp folder.


-- 
Stuart (via gimpusers.com)
_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Reply via email to