[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Grepping fonts for a specific glyph



> Use imagemagick! Something like
>
> for fontf in `mlocate -i .ttf`; do
>  convert -background lightblue -fill blue -pointsize 48 \
>  -font $fontf label:<Unicode_character> ouput_pic($fontf).gif
> done
>
> to produce one pic file for each font you have then check them out one by
> one visually.
>

Thank you, that was ingenious! Exactly what I needed! I made a short
script out of it, and I had to change the path-removal code:

$ cat showFonts.sh
#!/bin/bash

for fontf in `mlocate -i .ttf`; do
 convert -background lightblue -fill blue -pointsize 48 \
 -font $fontf label:$1 $(basename "$fontf").gif
done

One question, why mlocate instead of locate?



-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

Please CC me if you want to be sure that I read your message. I do not
read all list mail.


Reply to: