add farsi (rtl) language map in tests from ajashton

This commit is contained in:
Dane Springmeyer 2010-09-26 23:50:37 +00:00
parent dc247d9d79
commit dce9986d3d
8 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1 @@
XB Fonts.ttf from http://wiki.irmug.org/index.php/X_Series_2

BIN
tests/data/fonts/XB Zar.ttf Normal file

Binary file not shown.

View file

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<Map srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" background-color="#eee">
<!-- nik2img.py -b 60 46 80 28 text_styles.xml text_styles.png -->
<Style name="custom_font">
<Rule>
<TextSymbolizer
name="[NAME_FA]"
face_name="XB Zar Regular"
fill="#000"
size="20"
halo_fill="#fff"
halo_radius="2"
dy="-2"
wrap_width="50"
line_spacing="3"
allow_overlap="true"
/>
<TextSymbolizer
name="[NAME_EN]"
face_name="DejaVu Sans Book"
text_transform="uppercase"
fill="#000"
opacity="0.6"
size="10"
halo_fill="#fff"
halo_radius="2"
character_spacing="3"
dy="2"
wrap_width="50"
line_spacing="4"
allow_overlap="true"
/>
</Rule>
</Style>
<Layer srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>custom_font</StyleName>
<Datasource>
<Parameter name="file">../shp/farsi-labels</Parameter>
<Parameter name="type">shape</Parameter>
</Datasource>
</Layer>
</Map>

Binary file not shown.

View file

@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]

Binary file not shown.

Binary file not shown.

Binary file not shown.