<Map background-color="#eee" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" minimum-version="0.7.2" font-directory="../fonts/XB Zar.ttf">
  
<!-- nik2img.py -b 60 46 80 28 rtl_text_map.xml text_styles.png -->

  <Style name="custom_font">
    <Rule>
      <TextSymbolizer fill="#000" size="20" dy="-2" face-name="XB Zar Regular" halo-fill="#fff" halo-radius="2" wrap-width="50" line-spacing="3" allow-overlap="true">[NAME_FA]</TextSymbolizer>
      <TextSymbolizer fill="#000" opacity="0.6" size="10" dy="2" face-name="DejaVu Sans Book" text-transform="uppercase" halo-fill="#fff" halo-radius="2" character-spacing="3" wrap-width="50" line-spacing="4" allow-overlap="true">[NAME_EN]</TextSymbolizer>
    </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>