Building a pog from an entire folder.

1 view
Skip to first unread message

Donn

unread,
Jul 12, 2008, 10:51:05 AM7/12/08
to dissonance, fontypython
Ciao Giuseppe. (And the list in general.)
> That is, a command to add all fonts in a folder to a pog.
Yes, that's a pretty good idea I will make a note in my ideas file for me to
work on when I get a chance.

In the meantime, here's a trick to build pogs yourself from the command-line.
Open a console/terminal (like konsole or gnome-terminal). Now I will use
square brackets [] to surround the command you can type but don't type the
brackets: Ok, let's start:

I will use ~/somefonts as the example folder you want to use.
The idea is to build a pog, which is a plain text file.

1. Use [cd ~/.fontypython] to go where the pogs live.

2. [echo "not installed" > newpog.pog] You can use any name you want. Just
make *sure* you don't overwrite some other pog!

3. [find ~/somefonts -iname "*.ttf" >> newpog.pog] That will go and find the
ttfs (you can change that to say "*.otf" but Type1 fonts might be more
tricky) and then it will append them to the 'newpog.pog' file you just
started.

4. If you want to add other fonts from other folders, just use the same find
command, but change the path. Make sure you use 2 ">" symbols (>>) because
that means append-to.

Right, that's it. Now open fonty and go look at newpog:
[fontypython newpog]
You can also install those fonts with:
[fontypython -i newpogs]
Have a look at [fontypython --help]

I hope that helps you, please ask if you need anything else.
Regards,
Donn.

Reply all
Reply to author
Forward
0 new messages