mapnik/tests/data/good_maps/rtl_text_map.xml

46 lines
1.1 KiB
XML
Raw Normal View History

<?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>