Add test for RTL text.

This commit is contained in:
Hermann Kraus 2012-03-16 00:38:03 +01:00
parent c95959c549
commit f9b2e5fb56
2 changed files with 28 additions and 1 deletions

View file

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map>
<Map background-color="white" srs="+proj=latlong +datum=WGS84">
<Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>My Style</StyleName>
<Datasource>
<!--
<Parameter name="type">osm</Parameter>
<Parameter name="file">points.osm</Parameter>
-->
<Parameter name="type">shape</Parameter>
<Parameter name="file">points.shp</Parameter>
</Datasource>
</Layer>
<Style name="My Style">
<Rule>
<Filter>[nr]='5'</Filter>
<PointSymbolizer/>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" dx="0" dy="16" wrap-width="10">'مخيّم دير البلح'</TextSymbolizer>
</Rule>
</Style>
</Map>

View file

@ -27,7 +27,9 @@ files = [
("formating-3", 500),
("formating-4", 500),
("shieldsymbolizer-1", 490, 495, 497, 498, 499, 500, 501, 502, 505, 510),
("expressionformat", 500)]
("expressionformat", 500),
("rtl-point", (200, 200))
]
def render(filename, width, height=100):
print "-"*80