Failure to draw text when using a certain font
Posted: 2018-06-24T14:30:39-07:00
The following ImageMagick command produces an empty output image without text.
I'm sure it is a font and/or ImageMagick problem. The following ImageMagick command produces the expected output image, with text. The only difference in the command is the font used.
The "Kumar One' font was downloaded from https://fonts.google.com, and it draws texts properly in other apps, such as a word processor.
The output of contains the following.
I've used the ImageMagick version 7.0.7-27 Q16 x64 2018-03-18, on Windows 7 Home Premium.
Much appreciated.
Code: Select all
magick -size 4000x800 xc:none -fill rgb(17,35,39) -font Kumar-One -pointsize 300.0 -strokewidth 1 -stroke rgb(196,167,194) -gravity NorthWest +antialias -annotate +0+0 "This is first line." "c:\temp\test.png"
Code: Select all
magick -size 4000x800 xc:none -fill rgb(17,35,39) -font Impact -pointsize 300.0 -strokewidth 1 -stroke rgb(196,167,194) -gravity NorthWest +antialias -annotate +0+0 "This is first line." "c:\temp\test2.png"
The output of
Code: Select all
magick -list font
What is causing this problem? How can I resolve it?Font: Kumar-One
family: Kumar One
style: Normal
stretch: Normal
weight: 400
glyphs: c:\windows\fonts\kumarone-regular.ttf
I've used the ImageMagick version 7.0.7-27 Q16 x64 2018-03-18, on Windows 7 Home Premium.
Much appreciated.