From owner-freebsd-questions@FreeBSD.ORG Sun Dec 14 04:20:24 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D5731065673 for ; Sun, 14 Dec 2008 04:20:24 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id F271C8FC17 for ; Sun, 14 Dec 2008 04:20:23 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LBiSt-0001B6-4q for freebsd-questions@freebsd.org; Sat, 13 Dec 2008 20:20:23 -0800 Message-ID: <20997257.post@talk.nabble.com> Date: Sat, 13 Dec 2008 20:20:23 -0800 (PST) From: cuongvt To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: freebsd@vuhanhnhu.com Subject: imagemagick convert: japanese text broken in freebsd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Dec 2008 04:20:24 -0000 Hi, I know that IM support japanese text. On Freebsd 7.0 with latest imagemagick built from port (6.4.7) and msgothic.ttc copied from windows partition, imagick extension of PHP installed by pecl. in terminal (zsh) I type: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D convert origin.jpg -fill white -font /usr/X11R6/lib/X11/fonts/TrueType/msgothic.ttc -pointsize 125 -stroke blue -strokewidth 1 -draw "text 20,130 '=E3=81=8C=E3=81=8F=E3=81=9B=E3=81=84'" s= traight.jpg =3D=3D=3D=3D=3D=3D=3D=3D IM did not informed any error, but the result is japanese text broken (question marks). However, if I ran PHp script (see below), japanese displayed in image fine. What is the reason and how can I solve that? thansk and regards, Below is PHP script: sample373 setFont("/usr/X11R6/lib/X11/fonts/TrueType/msgothic.ttc"); /* =E3=83=95=E3=82=A9=E3=83=B3=E3=83=88=E3=82=B5=E3=82=A4=E3=82=BA=E8=A8=AD= =E5=AE=9A */ $idraw->setFontSize(32); /* gravity=E8=A8=AD=E5=AE=9A */ $idraw->setGravity(Imagick::GRAVITY_CENTER); $im->annotateImage($idraw, 0, 0, 0, "=E6=97=A5=E6=9C=AC=E8=AA=9E"); $im->writeImage('sample373a.jpg'); /* $idraw->clear(); 2008/09/30=E8=BF=BD=E8=A8=98=EF=BC=9Adestroy=E3=81=A8= =E5=90=8C=E6=A7=98=E3=81=ABClearDrawingWand=E3=82=92=E5=91=BC=E3=81=B6=E3= =81=AE=E3=81=A7=E5=BF=85=E8=A6=81=E3=81=AA=E3=81=97 */ $idraw->destroy(); /* $im->clear(); 2008/09/30=E8=BF=BD=E8=A8=98=EF=BC=9Adestroy=E3=81=A8=E5= =90=8C=E6=A7=98=E3=81=ABClearMagicWand=E3=82=92=E5=91=BC=E3=81=B6=E3=81=AE= =E3=81=A7=E5=BF=85=E8=A6=81=E3=81=AA=E3=81=97 */ $im->destroy(); ?> --=20 View this message in context: http://www.nabble.com/imagemagick-convert%3A-= japanese-text-broken-in-freebsd-tp20997257p20997257.html Sent from the freebsd-questions mailing list archive at Nabble.com.