fmw42 wrote:charlie wrote:Hello
fmw42, and thank you for your reply.
Yes, I have. But am having trouble getting several of them to work as described.
see a simple example at viewtopic.php?f=1&t=12416&hilit=show_fonts
I had a look at this. The
show_fonts script is one of the ones that isn't working.
For example, the example in the thread uses:
Using a slight variation:
Code: Select all
./show_fonts -2 -o ./Archway-Regular.png Archway-Regular
returns the following error:
Code: Select all
expr: illegal option -- 2
usage: expr [-e] expression
Looking at the script indicates that -2
is a legal option - and the one I am
interested in, eg; the full ASCII table.
Perhaps this is for the Windows version of sh - tho I don't think Windows is smart
enough to actually provide a
real (C)shell.
Anyway, it turned out to be a bit of a disappointment. But I
greatly your
taking the time to help. Thanks.
--Chuck
You probably need cygwin on Windows as the scripts are for Unix bash. But perhaps Anthony can help you with it.
Hello
fmw42, and thank you for your thoughtful reply.
I'm afraid I wasn't very clear - sorry.
I'll try again.
The problem I'm having with the show_fonts script is
actually
on a *NIX based system (BSD, to be exact). ANyway, having read my response, I
can understand the confusion - sorry. It was "tounge-in-cheek", but I think I
bit my tounge.

.
Anyway, I ended up using
convert && montage thusly:
to get the font list
Code: Select all
#!/bin/sh -
convert -font AvantGarde-Book -pointsize 24 label:@atable AvantGarde-Book.png
convert -font AvantGarde-BookOblique -pointsize 24 label:@atable AvantGarde-BookOblique.png
convert -font AvantGarde-Demi -pointsize 24 label:@atable AvantGarde-Demi.png
convert -font AvantGarde-DemiOblique -pointsize 24 label:@atable AvantGarde-DemiOblique.png
convert -font Bookman-Demi -pointsize 24 label:@atable Bookman-Demi.png
convert -font Bookman-DemiItalic -pointsize 24 label:@atable Bookman-DemiItalic.png
convert -font Bookman-Light -pointsize 24 label:@atable Bookman-Light.png
convert -font Bookman-LightItalic -pointsize 24 label:@atable Bookman-LightItalic.png
---8<---8<---8<---150 fonts later
convert -font Utopia-Bold -pointsize 24 label:@atable Utopia-Bold.png
convert -font Utopia-Bold-Italic -pointsize 24 label:@atable Utopia-Bold-Italic.png
convert -font Utopia-Italic -pointsize 24 label:@atable Utopia-Italic.png
convert -font Utopia-Regular -pointsize 24 label:@atable Utopia-Regular.png
convert -font Vanilla-Whale-Regular -pointsize 24 label:@atable Vanilla-Whale-Regular.png
convert -font Verdana-Bold -pointsize 24 label:@atable Verdana-Bold.png
convert -font Verdana-Bold-Italic -pointsize 24 label:@atable Verdana-Bold-Italic.png
convert -font Verdana-Italic -pointsize 24 label:@atable Verdana-Italic.png
convert -font Verdana-Regular -pointsize 24 label:@atable Verdana-Regular.png
convert -font Waltograph-Regular -pointsize 24 label:@atable Waltograph-Regular.png
convert -font Webdings-Regular -pointsize 24 label:@atable Webdings-Regular.png
exit
@atable
Code: Select all
1234567890 \` \" .,:;!?
abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
@#\$\&*+-=~^_ ()[]{}<>\\/|
This, as you would know, left me with individual samples of all of my installed fonts.
I
also needed to remove the
backtick, because IM (and or, my shell) kept tripping over it.
I then used a deivitive of one of your scripts (
photo_store)
to generate a sheet containing all of the individual font samples created earlier.
The changes I made to the (your) script were
- Removed the -resize option - because the images were already the size I needed them to be.
- Brought it up to date with todays standards - XHTML 1.0-strict compliance
- Added a small amount of CSS in the <head>; section.
If you're interested, I'd be happy to post it for you (adding back in the
-resize, of course).
Anyway. It's not very efficient. But I'm still just getting familiar with IM,
and don't
yet know it well enough to do it in the most efficient fashion.
I
do have some good friends - egrep, sed, sort, uniq & awk. Whom I am
very well acquainted with. They are
masters at what they do.
But aren't very "self-motivated". So I have to tell them how I want them to
do the jobs they do so well.

They are so good, in fact. That they (with a little guidance) have been able to
accumulate over 4 million naughty addresses (SPAM sources). Simply by examining
some of the records in my maillogs. It's a RBL system I've been developing over
the past year. It rivals
every other system available. And to-date, I have
not added
one single "false-positive". I'll be releasing it in Q1 of next year.
To the point...
Now that I have experimented with, and found out how to achieve the desired
results from IM. I'll cobble up a couple of scripts (shell - sh) that will produce
the results I achieved above. Actually, I can do the above in
one script.
I'll post it here, if anyone is interested. Or you'd like to add it to your "scripts"
section.
Back to your
show_fonts -
I think what might be the trouble I (and the person in that thread also was having) is
related to either
1. The quote method you used (double), or
2. The "backtick(s)" intended for printing.
3. Or both.
In my experience, "quoting" was a frequent issue for me in my earlier scripts.
This is
likely because my default shell is a
Cshell (csh). So I
simply fire off my
#!/bin/sh- scripts as
I just now remembered this issue. So I'll re-attempt to use your script thusly:
and report back if that solved (eliminated) the complaints I received when I
tried to use it before.
Well. I see this post is beginning to become a Novel. So I'll end it here by
thanking you again for all your hard work, the time you've shared so generously,
and your thoughtful response.
--Chuck out...