convert -background white -fill black -size 320x320 -encoding Unicode -font AlHor -gravity center -pointsize 40 label:'ﺱﻼﻣ' test01.png
What am i doing wrong? The word looks right in the arabic above, but the image below is what I get:

Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
width="400"
height="100"
version="1.1">
<text
xml:space="preserve"
style="font-size:50px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans"
x="10" y="90"
><tspan>Hello ﺱﻼﻣ World</tspan>
</text>
</svg>
Code: Select all
inkscape -f arabic.svg -e arabic.png -y 1
Code: Select all
convert arabic.svg arabic_im.png
Code: Select all
inkscape -f arabic.svg -e arabic_ink.png -y 1
Code: Select all
benjamin@www:/var/www/Dari$ sudo aptitude show librsvg2-2
Package: librsvg2-2
State: installed
Automatically installed: no
Version: 2.26.0-1
Priority: optional
Section: libs
Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Uncompressed Size: 303k
Depends: libc6 (>= 2.4), libcairo2 (>= 1.2.4), libcroco3 (>= 0.6.1), libfontconfig1 (>= 2.4.0), libfreetype6 (>= 2.2.1), libglib2.0-0 (>= 2.16.0),
libgsf-1-114 (>= 1.14.14), libgtk2.0-0 (>= 2.17.0), libpango1.0-0 (>= 1.14.0), libxml2 (>= 2.6.27)
Suggests: librsvg2-bin
Conflicts: librsvg2-common (< 2.12)
Description: SAX-based renderer library for SVG files (runtime)
The rsvg library is an efficient renderer for Scalable Vector Graphics (SVG) pictures.
This package contains the runtime library, necessary to run applications using librsvg.
Homepage: http://librsvg.sourceforge.net/
Code: Select all
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
width="320"
height="320"
xml:lang="fa"
direction="rtl"
version="1.1">
<text
xml:space="preserve"
style="font-size:50px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;font-family:AlHor"
x="10" y="90">
<tspan>ﺱﻼﻣ</tspan>
</text>
</svg>