mapnik/tests/visual_tests/styles/text-ttc-font.xml

84 lines
1.9 KiB
XML
Raw Normal View History

<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over" background-color="steelblue" font-directory="../../data/fonts/NotoSans-Regular.ttc">
2014-12-09 16:31:23 +01:00
<Parameters>
<Parameter name="sizes">600,400</Parameter>
</Parameters>
<Style name="labels">
<Rule>
<Filter>[x]=1.5</Filter>
<TextSymbolizer
face-name="Noto Sans UI Regular"
size="[id]*5.5"
allow-overlap="true"
halo-rasterizer="full"
halo-radius="[id]/6.0"
opacity="[id]/8.0"
>'Noto Sans'
</TextSymbolizer>
</Rule>
<Rule>
<Filter>[x]=3.5</Filter>
<TextSymbolizer
face-name="Noto Sans Regular"
size="[id]*5.5"
allow-overlap="true"
halo-rasterizer="fast"
halo-radius="[id]/6.0"
opacity="[id]/8.0"
>'Noto Sans'
</TextSymbolizer>
</Rule>
</Style>
<Layer name="point" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>labels</StyleName>
<Datasource>
<Parameter name="type">csv</Parameter>
<Parameter name="inline">
id,x,y
1,1.5,4.5
2,1.5,4
3,1.5,3.5
4,1.5,3
5,1.5,2.5
6,1.5,2
7,1.5,1.5
8,1.5,1
1,3.5,4.5
2,3.5,4
3,3.5,3.5
4,3.5,3
5,3.5,2.5
6.5,3.5,2
7,3.5,1.5
8,3.5,1
</Parameter>
</Datasource>
</Layer>
2014-12-09 16:31:23 +01:00
<!-- points to frame data view -->
<Style name="frame">
<Rule>
<PointSymbolizer />
</Rule>
</Style>
<Layer name="frame" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>frame</StyleName>
<Datasource>
<Parameter name="type">csv</Parameter>
<Parameter name="inline">
x,y
0,0
5,0
0,5
5,5
</Parameter>
</Datasource>
</Layer>
2014-12-09 16:31:23 +01:00
</Map>