Add test case for bug #2037.
This commit is contained in:
parent
6a7e0ec072
commit
061397dce3
2 changed files with 21 additions and 0 deletions
20
tests/visual_tests/styles/text-bug2037.xml
Normal file
20
tests/visual_tests/styles/text-bug2037.xml
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE Map>
|
||||
<Map background-color="white" srs="+proj=latlong +datum=WGS84" font-directory="/usr/share/fonts/truetype/tlwg/">
|
||||
<Layer name="layer" srs="+proj=latlong +datum=WGS84">
|
||||
<StyleName>My Style</StyleName>
|
||||
<Datasource>
|
||||
<Parameter name="type">csv</Parameter>
|
||||
<Parameter name="file">../data/points.csv</Parameter>
|
||||
</Datasource>
|
||||
</Layer>
|
||||
<Style name="My Style">
|
||||
<Rule>
|
||||
<PointSymbolizer/>
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[nr] = 5</Filter>
|
||||
<TextSymbolizer wrap-width="20" face-name="DejaVu Sans Book" size="9" allow-overlap="true">"xxxxxx xxxxxx"</TextSymbolizer>
|
||||
</Rule>
|
||||
</Style>
|
||||
</Map>
|
|
@ -79,6 +79,7 @@ text_tests = [
|
|||
{'name': "text-bug1820-1", 'sizes':[(600, 300)], 'bbox':default_text_box},
|
||||
{'name': "text-bug1820+0", 'sizes':[(600, 300)], 'bbox':default_text_box},
|
||||
{'name': "text-bug1820+1", 'sizes':[(600, 300)], 'bbox':default_text_box},
|
||||
{'name': "text-bug2037", 'sizes':[(800, 300)], 'bbox':default_text_box},
|
||||
{'name': "text-expressionformat-color", 'sizes':[(800, 100)], 'bbox':default_text_box},
|
||||
{'name': "text-halign", 'sizes': [(800,800)], 'bbox':default_text_box},
|
||||
# Disabled by default as the required font isn't shipped with mapnik
|
||||
|
|
Loading…
Reference in a new issue