2016-11-22 6 views
-1

Ich versuche, einen Text mit dieser Schriftart zu erstellen: HelveticaNeueLTStd-RomanImagemagick mit Schrift umwandeln Helvetica

Die Schriftart in meinem Imagick aufgeführt ist, wenn ich dies tun: identify -list font

... 
Font: HelveticaNeueLTStd-Roman 
family: HelveticaNeueLTStd-Roman 
style: Normal 
stretch: Normal 
weight: 400 
glyphs: c:\windows\fonts\helveticaneueltstd-roman_0.otf 
... 

Mein Befehl sieht aus wie dies:

convert -debug annotate -size 720x576 -background none -fill white -stroke white 
-font HelveticaNeueLTStd-Roman -pointsize 22 90x25 -draw "text 160,420 'Test 1'" 
-font HelveticaNeueLTStd-Roman -pointsize 22 50x25 -draw "text 310,420 'Text 2'" 
-font HelveticaNeueLTStd-Roman -pointsize 22 115x25 -draw "text 425,420 'Text 3'" result.png 

aber ich bekomme folgende Fehler (cmd):

convert -debug annotate -size 720x576 -background none -fill white -stroke white -font HelveticaNeueLTStd-Roman -pointsize 22 90x25 -draw "text 160,420 'Test 1'" -font HelveticaNeueLTStd-Roman -pointsize 22 
50x25 -draw "text 310,420 'Text 2'" -font HelveticaNeueLTStd-Roman 
-pointsize 22 115x25 -draw "text 425,420 'Text 3'" result.png 
convert.exe: unable to open image `90x25': No such file or directory @ error/blob.c/OpenBlob/2702. 
convert.exe: no decode delegate for this image format `' @ error/constitute.c/ReadImage/501. 
convert.exe: unable to open image `50x25': No such file or directory @ error/blob.c/OpenBlob/2702. 
convert.exe: no decode delegate for this image format `' @ error/constitute.c/ReadImage/501. 
convert.exe: unable to open image `115x25': No such file or directory @ error/blob.c/OpenBlob/2702. 
convert.exe: no decode delegate for this image format `' @ error/constitute.c/ReadImage/501. 
convert.exe: no images defined `result.png' @ error/convert.c/ConvertImageCommand/3252. 

Was mache ich falsch?

Antwort

0

versuchen, dieses:

magick convert -size 720x576 xc:none -fill white -stroke white 
-font Arial -pointsize 22 -draw "text 160,420 'Test 1'" 
-font Arial -pointsize 22 -draw "text 310,420 'Text 2'" 
-font Arial -pointsize 22 -draw "text 425,420 'Text 3'" result.png 

Ich habe mich verändert Helvetica in Arial und verwendet IMv7 Syntax. Sollte allerdings leicht einzustellen sein.

0

Die -pointsize Einstellung dauert nur ONE Parameter (der Punkt-Größe), nicht ZWEI wie Sie haben.

Auch die -font und -pointsize tatsächlich Einstellungen sind so gibt es keine Notwendigkeit, sie zu wiederholen - sie setzen bleiben, bis sie geändert.