With ImageMagick, how can you see all available fonts?

后端 未结 6 1560
清歌不尽
清歌不尽 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:52

    The fonts are a bit tricky. ImageMagick will not usually 'see' your system fonts. On OS/X, fonts are stored in a non-standard format.

    Use convert -list font to see the fonts ImageMagick currently knows about. It may be blank.

    ImageMagick looks for $HOME/.magick/type.xml for the list of fonts. If you are on OS/X, go see the well written tutorial at http://gothick.org.uk/2008/03/14/using-os-x-fonts-in-imagemagick/.

提交回复
热议问题