add farsi (rtl) language map in tests from ajashton
This commit is contained in:
parent
dc247d9d79
commit
dce9986d3d
8 changed files with 47 additions and 0 deletions
1
tests/data/fonts/LICENCE.txt
Normal file
1
tests/data/fonts/LICENCE.txt
Normal 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
BIN
tests/data/fonts/XB Zar.ttf
Normal file
Binary file not shown.
45
tests/data/good_maps/rtl_text_map.xml
Normal file
45
tests/data/good_maps/rtl_text_map.xml
Normal 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>
|
BIN
tests/data/shp/farsi-labels.dbf
Normal file
BIN
tests/data/shp/farsi-labels.dbf
Normal file
Binary file not shown.
1
tests/data/shp/farsi-labels.prj
Normal file
1
tests/data/shp/farsi-labels.prj
Normal 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]]
|
BIN
tests/data/shp/farsi-labels.shp
Normal file
BIN
tests/data/shp/farsi-labels.shp
Normal file
Binary file not shown.
BIN
tests/data/shp/farsi-labels.shx
Normal file
BIN
tests/data/shp/farsi-labels.shx
Normal file
Binary file not shown.
BIN
tests/data/shp/farsi-labels.zip
Normal file
BIN
tests/data/shp/farsi-labels.zip
Normal file
Binary file not shown.
Loading…
Reference in a new issue