Hi, on my leap 15.2 with KDE I use magick convert to annotate some text on pictures,on leap 15.1 everything works fine, but on leap 15.2 happens this error:
pla@pla4-TW:~/bin/foto-comments> magick convert "/home/pla/extended-fototest.jpg" -gravity south -font helvetica -fill blue -pointsize 30 -annotate 0,0 "file=fototest.jpg
> -autore=pier andre -descrizione=
> capodanno in Croazia" "/home/pla/annotated-fototest.jpg"
convert: unable to read font `/usr/share/fonts/truetype/Adobe-Helvetica-Regular.otb' @ error/annotate.c/RenderFreetype/1521.
pla@pla4-TW:~/bin/foto-comments>
the file /usr/share/fonts/truetype/Adobe-Helvetica-Regular.otb exist
[FONT=monospace]pla@pla4-TW:~/bin/foto-comments> ls /usr/share/fonts/truetype/Adobe-Helvetica-Regular.otb
/usr/share/fonts/truetype/Adobe-Helvetica-Regular.otb
pla@pla4-TW:~/bin/foto-comments>
[/FONT]
I have to remove “-font helvetica” from the command to have a working command
pla@pla4-TW:~/bin/foto-comments> magick convert "/home/pla/extended-fototest.jpg" -gravity south -fill blue -pointsize 30 -annotate 0,0 "file=/fototest.jpg
> -autore=pier andre -descrizione=
> capodanno in Croazia" "/home/pla/annotated-fototest.jpg"
pla@pla4-TW:~/bin/foto-comments>
how can I have a working command with the “[FONT=monospace]-font helvetica” option also in leap 15.2??
ciao pier
[/FONT]
Find a Helvetica to install, or use one of its metric-compatible virtual clones. Helvetica on Linux is uncommon. It’s mainly found on MacOS. On Windows, when Helvetica is called for, Arial is usually substituted. Below shows observed substitutions on several distros here:
where can I install helvetica from? I suppose if the command works on my 15.1 I have helvetica installed but I don’t remember where I taken it
maaanythanks, here on 15.2
I haven’t tested it on suse, but I was having a very similar error on Fedora 34, where my ImageMagick convert invocation was complaining about not being able to find ‘helvetica’:
$ magick montage -background ‘#336699’ -geometry +4+4 magick:rose [FONT=Courier New]magick:logo montage.jpg[/FONT]
montage: unable to read font `helvetica’ @ error/annotate.c/RenderFreetype/1459.