ImageMagick: bold and italic fonts?

When using ImageMagick from the command line, how do I specify bold or italic?

I tried the arguments -weight Bold and -style Italic , but they do not affect at least my Windows 7. I tried to call fonts by name (for example, -font "Arial Bold Italic" ), but I get the base font ( for example, "Arial"). I use -annotate to overlay a string on an image.

Thanks in advance for your help.

+6
source share
1 answer

Try the name of the hyphenated font: -font "Arial-Bold-Italic" - it worked on my Windows 7 (like you, I could not use the -style parameter). The style order (Bold-Italic) is important here.

To see all the fonts available for ImageMagick, use convert -list font (and also possibly >C:\fonts.txt , because the list is usually very long).

+8
source

Source: https://habr.com/ru/post/895815/


All Articles