Revert "Add tests for international text."
This reverts commit 0caebc52ae
.
This commit is contained in:
parent
cd644ac24f
commit
d9afce16c2
2 changed files with 3 additions and 52 deletions
|
@ -1,46 +0,0 @@
|
||||||
<?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">shape</Parameter>
|
|
||||||
<Parameter name="file">../data/points.shp</Parameter>
|
|
||||||
</Datasource>
|
|
||||||
</Layer>
|
|
||||||
|
|
||||||
|
|
||||||
<Style name="My Style">
|
|
||||||
<Rule>
|
|
||||||
<PointSymbolizer/>
|
|
||||||
</Rule>
|
|
||||||
<Rule>
|
|
||||||
<!-- This is an easy test to ensure text shaping actually works. Ligatures are rendered when harfbuzz is used, but not with the old text rendering system. -->
|
|
||||||
<Filter>[nr] = "1"</Filter>
|
|
||||||
<TextSymbolizer face-name="DejaVu Sans Book" size="36" placement="point" dy="16">"fi"</TextSymbolizer>
|
|
||||||
<TextSymbolizer face-name="DejaVu Sans Book" size="36" placement="point" dy="-16">"ff"</TextSymbolizer>
|
|
||||||
</Rule>
|
|
||||||
<Rule>
|
|
||||||
<!-- In addition to the problem mentioned in the bug report (which seems to be gone) this the position is calculated incorrectly -->
|
|
||||||
<Filter>[nr] = "3"</Filter>
|
|
||||||
<TextSymbolizer face-name="DejaVu Sans Book" size="36" placement="point" dy="16">"نامجو 17"</TextSymbolizer>
|
|
||||||
<TextSymbolizer face-name="DejaVu Sans Book" size="10" placement="point" dy="-16">"#519"</TextSymbolizer>
|
|
||||||
</Rule>
|
|
||||||
<Rule>
|
|
||||||
<Filter>[nr] = "5"</Filter>
|
|
||||||
<TextSymbolizer face-name="DejaVu Sans Book" size="36" placement="point" dy="-16">"زنقة الملاح"</TextSymbolizer>
|
|
||||||
<TextSymbolizer face-name="DejaVu Sans Book" size="10" placement="point" dy="16">"#1154"</TextSymbolizer>
|
|
||||||
</Rule>
|
|
||||||
<Rule>
|
|
||||||
<!--TODO: Find suitable font! -->
|
|
||||||
<Filter>[nr] = "7"</Filter>
|
|
||||||
<TextSymbolizer face-name="DejaVu Sans Book" size="36" placement="point" dy="16">"អក្សរខ្មែរ"</TextSymbolizer>
|
|
||||||
<TextSymbolizer face-name="DejaVu Sans Book" size="10" placement="point" dy="-16">"#1208"</TextSymbolizer>
|
|
||||||
</Rule>
|
|
||||||
<Rule>
|
|
||||||
<Filter>[nr] = "9"</Filter>
|
|
||||||
<TextSymbolizer face-name="DejaVu Sans Book" size="36" placement="point" dy="-16">"أڭادير"</TextSymbolizer>
|
|
||||||
<TextSymbolizer face-name="DejaVu Sans Book" size="10" placement="point" dy="16">"#1146"</TextSymbolizer>
|
|
||||||
</Rule>
|
|
||||||
</Style>
|
|
||||||
</Map>
|
|
|
@ -44,8 +44,7 @@ files = [
|
||||||
{'name': "rtl-point", 'sizes': [(200, 200)]},
|
{'name': "rtl-point", 'sizes': [(200, 200)]},
|
||||||
{'name': "jalign-auto", 'sizes': [(200, 200)]},
|
{'name': "jalign-auto", 'sizes': [(200, 200)]},
|
||||||
{'name': "line-offset", 'sizes':[(900, 250)],
|
{'name': "line-offset", 'sizes':[(900, 250)],
|
||||||
'bbox': mapnik.Box2d(-5.192, 50.189, -5.174, 50.195)},
|
'bbox': mapnik.Box2d(-5.192, 50.189, -5.174, 50.195)}
|
||||||
{'name': "harfbuzz"},
|
|
||||||
]
|
]
|
||||||
|
|
||||||
def render(filename, width, height, bbox, quiet=False):
|
def render(filename, width, height, bbox, quiet=False):
|
||||||
|
@ -79,11 +78,9 @@ if __name__ == "__main__":
|
||||||
quiet = False
|
quiet = False
|
||||||
|
|
||||||
if len(sys.argv) == 2:
|
if len(sys.argv) == 2:
|
||||||
files = [{"name": sys.argv[1], "sizes": sizes_few_square}]
|
files = [(sys.argv[1], (500, 500))]
|
||||||
elif len(sys.argv) > 2:
|
elif len(sys.argv) > 2:
|
||||||
files = []
|
files = [sys.argv[1:]]
|
||||||
for name in argv[1:]:
|
|
||||||
files.append({"name": name})
|
|
||||||
|
|
||||||
for f in files:
|
for f in files:
|
||||||
config = dict(defaults)
|
config = dict(defaults)
|
||||||
|
|
Loading…
Reference in a new issue