Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

With ImageMagick, how can you see all available fonts?

ImageMagick can draw text into a picture in a given font, how can I see all available fonts for my system?

like image 756
flybywire Avatar asked Sep 08 '09 09:09

flybywire


People also ask

What is ImageMagick library?

ImageMagick, invoked from the command line as magick , is a free and open-source cross-platform software suite for displaying, creating, converting, modifying, and editing raster images. Created in 1987 by John Cristy, it can read and write over 200 image file formats.


2 Answers

depending on your imagemagick version:

convert -list type       # for IM older than v6.3.5-7 convert -list font       # for newer versions 

also the output format changed...

-- update For OsX (Answer from Charles Merriam) if the command above does not produce any results:

For a full tutorial with description see http://gothick.org.uk/2008/03/14/using-os-x-fonts-in-imagemagick/ for the rest &tldr:

# use fondu to convert fonts and update locatedb sudo port install fondu  cd /usr/local/share/fonts/ fondu /Library/Fonts/*.dfont /etc/periodic/weekly/310.locate  # generate imagemagick type.xml  cd ~ mkdir ~/.magick wget http://www.imagemagick.org/Usage/scripts/imagick_type_gen perl imagick_type_gen > ~/.magick/type.xml 
like image 133
Niko Avatar answered Nov 01 '22 21:11

Niko


To list only the font names, do convert -list font | grep Font

like image 41
Host Lawn Avatar answered Nov 01 '22 21:11

Host Lawn