Re: [Gimp-user] how do I find the pathname of a selected font?

2010-10-01 Thread Simon Budig
bobdobbs (for...@gimpusers.com) wrote:
> I've got lots of fonts in quiet a few directories.
> 
> I'm using a particular font in an image I'm editing. I want to
> discover the pathname of this font.
> 
> It looks like the name of the font that gimp displays in the font text
> settings pane doesn't corrospond to the filename of the actual font,
> so the solution isn't as simple as navigating to my main font
> directory and grepping for it.
> 
> Can gimp give me enough information on the font to allow me to find it?

Not exactly Gimp, but try this:

  si...@mezzanine:~$ fc-list "DejaVu Sans" : file
  /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf: 
  /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-BoldOblique.ttf: 
  /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-BoldOblique.ttf: 
  /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf: 
  /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf: 
  /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-ExtraLight.ttf: 
  /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Bold.ttf: 
  /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf: 
  /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Oblique.ttf: 

Hope this helps,
Simon

-- 
  si...@budig.de  http://simon.budig.de/
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] how do I find the pathname of a selected font?

2010-10-01 Thread Sven Neumann
On Fri, 2010-10-01 at 09:13 +0200, bobdobbs wrote:

> I've got lots of fonts in quiet a few directories.
> 
> I'm using a particular font in an image I'm editing. I want to
> discover the pathname of this font.
> 
> It looks like the name of the font that gimp displays in the font text
> settings pane doesn't corrospond to the filename of the actual font,
> so the solution isn't as simple as navigating to my main font
> directory and grepping for it.
> 
> Can gimp give me enough information on the font to allow me to find
> it?

No, but the tools that come with fontconfig can. There's the fc-list
command-line utility that can list all available fonts with their
filenames. Try "fc-list : family style file". For details see the
fc-list manual page.


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] how do I find the pathname of a selected font?

2010-10-01 Thread GSR - FR
Hi,
cr33...@gmail.com (2010-10-01 at 1228.05 -0500):
> On Fri, Oct 1, 2010 at 12:15 PM, Chris Mohler  wrote:
> > Another possibility would be to modify this script to output the
> > filename and the font name on the same line 
> After rereading that script, I saw it was quite easy to modify so it
> only lists the font name and file name on the same line:
> http://pastebin.com/ztbgPJhZ
> 
> I only tested it once but it seems to work OK.  On a fairly stock
> Ubuntu I only had to install python-magic.

In Unix based systems it would be worth to try with symlinks: keep the
original named files somewhere, make the apps see symlinks that have
usable names and point to the real files; or even hardlinks, if same
partition.

GSR
 
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] how do I find the pathname of a selected font?

2010-10-01 Thread Chris Mohler
On Fri, Oct 1, 2010 at 12:15 PM, Chris Mohler  wrote:
> Another possibility would be to modify this script to output the
> filename and the font name on the same line

After rereading that script, I saw it was quite easy to modify so it
only lists the font name and file name on the same line:
http://pastebin.com/ztbgPJhZ

I only tested it once but it seems to work OK.  On a fairly stock
Ubuntu I only had to install python-magic.

Chris
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] how do I find the pathname of a selected font?

2010-10-01 Thread Chris Mohler
On Fri, Oct 1, 2010 at 2:13 AM, bobdobbs  wrote:
> It looks like the name of the font that gimp displays in the font text 
> settings pane doesn't corrospond to the filename of the actual font, so the 
> solution isn't as simple as navigating to my main font directory and grepping 
> for it.

I had a similar problem - I had a directory containing tons of fonts
that were all very badly named.  I wrote this snippet to rename the
files based on the actual font name (family_style.ttf) so I could find
them and install as needed:
http://pastebin.com/GB6PKBim

BE WARNED: this changes the file names *in place* - there is
absolutely no safety net.  You might consider copying your font dir to
a temporary location and then running the script there instead.  For
me it worked well - that whole directory is named correctly now, but I
make no guarantees (may kick puppies, eat kittens, etc. ;)  Also it
only will do TTF files, and probably only works on linux.  You need
python-imaging and python-magic as well.

Another possibility would be to modify this script to output the
filename and the font name on the same line - that way you could pipe
that through grep and see which file matches which font.

HTH,
Chris
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] how do I find the pathname of a selected font?

2010-10-01 Thread bobdobbs
Hi.

I've got lots of fonts in quiet a few directories.

I'm using a particular font in an image I'm editing. I want to discover the 
pathname of this font.

It looks like the name of the font that gimp displays in the font text settings 
pane doesn't corrospond to the filename of the actual font, so the solution 
isn't as simple as navigating to my main font directory and grepping for it.

Can gimp give me enough information on the font to allow me to find it?




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