With ImageMagick, how can you see all available fonts?

后端 未结 6 1549
清歌不尽
清歌不尽 2021-01-31 13:20

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

6条回答
  •  清酒与你
    2021-01-31 13:43

    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
    

提交回复
热议问题