← Back to team overview

ubuntuforums-unanswered team mailing list archive

Re: [Question #78038]: imagemagick extra fonts needed

 

Question #78038 on imagemagick in ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/imagemagick/+question/78038

Peter posted a new comment:
I finally got it working by trying the full path name to the font:-
convert -background lightblue -fill blue  -font /usr/share/fonts/truetype/msttcorefonts/Verdana.ttf \
          -size 165x70 -gravity center label:Anthony     label_size_gravity.gif 

I use it :-
system("convert $back -gravity center -font /usr/share/fonts/truetype/msttcorefonts/Verdana.ttf -stroke black -strokewidth $w  -pointsize $l -annotate 0 '\@$out2'  -font /usr/share/fonts/truetype/msttcorefonts/Verdana.ttf -stroke  none   -fill white   -pointsize $l -annotate 0 '\@$out2' temp/temp$i.jpg");

as part of a perl script where out2 is a file handle and $w $l are
calculated from the longest line of the text to scale it to fit.

-- 
You received this question notification because you are a member of UF
Unanswered Posts Team, which is an answer contact for Ubuntu.