image-manipulationimagemagicktext2image

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?


Solution

  • 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