add visual test confirming ttc are read okay - refs #2274
This commit is contained in:
parent
5b3340413b
commit
072a914906
7 changed files with 205 additions and 0 deletions
|
@ -0,0 +1,124 @@
|
|||
{
|
||||
"keys": [
|
||||
"",
|
||||
"1",
|
||||
"9",
|
||||
"2",
|
||||
"10",
|
||||
"3",
|
||||
"11",
|
||||
"4",
|
||||
"12",
|
||||
"5",
|
||||
"13",
|
||||
"6",
|
||||
"14",
|
||||
"7",
|
||||
"15",
|
||||
"8",
|
||||
"16"
|
||||
],
|
||||
"data": {},
|
||||
"grid": [
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" !! !!! # # ### ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" $$ $ %% % ",
|
||||
" $ $ $ $$$$ % % %%%% ",
|
||||
" $ $ % ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" & &&&&& & & && & ' ' ''' ' ' '' ' ",
|
||||
" & && & & &&& && ' '' ' ' ''' '' ",
|
||||
" & &&&&&& && &&& && ' '''''' '' ''' '' ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ( ( (( ) ) )) ",
|
||||
" ( ( (( (((( (( (( (( ) ) )) )))) )) )) )) ",
|
||||
" (( (( ( ( (( (( ( ((( )) ) ) ) )) )) ) )) ",
|
||||
" ( ( ( ( ( ( ( ) ) ) ) ) ) ) ) ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ** * * * * ++ + + + + ",
|
||||
" * * * ********* * *** *** *** +++ + +++++++++ + +++ +++ +++ ",
|
||||
" * * ** * * * * ** ** * * ** + + ++ + + + + ++ ++ + + ++ ",
|
||||
" * *** * * * * * * * * * * + +++ + + + + + + + + + + ",
|
||||
" * ** *** ** ** *** *** * * *** + ++ +++ ++ ++ +++ +++ + + ++ ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ,, , , ,,,, --- - - ----- ",
|
||||
" ,,, , ,, ,,, ,, ,, , ,, ,,,, ,,--- - --- --- --- -- --- ----- ---- ",
|
||||
" ,,, , ,,,,,,,,,,,,, ,,, ,,,,,,,,,,,,---- - -------- ---- --- --------- ---- ",
|
||||
" , ,,, ,, ,,,, ,, ,, ,,, ,,,,,, ,,,,,------ -- -- - -- -- ---- ------ - --- ",
|
||||
" , ,,, ,, ,,,, ,, ,, , ,,,,,, ,, ,,-- --- - -- - -- -- --------- - --- ",
|
||||
" , ,, ,,,,,,,,,,,,, ,,,, ,,,,,, ,,,,,-- -- ----- ------- ------------ - - -- ",
|
||||
" , , ,,, ,, ,,, ,,, ,,,,,, ,,,,,-- -- --- ------- ---- ------- - --- ",
|
||||
" ",
|
||||
" ",
|
||||
" .. . ... // / /// ",
|
||||
" .. . .. .... // / // //// ",
|
||||
" ... . ... .... .... .. .... .....///../ /// //// //// // //// ///// //// ",
|
||||
" .... . .............. ... ..........////./ ////////////// /// ////////// //// ",
|
||||
" . .. . .. . .. .. .. .... ...... ./.// / / / // // // //// ////// / /// ",
|
||||
" . ... . . .. .. .. ......... ./ ./// / / // // // // /////// / /// ",
|
||||
" . ... .. .. .. .. ... .. .. . ..... ./. /// // // // // // // // / ///// / / / ",
|
||||
" . .. .... ... .... ..... ....... ./...// ///// /// //// ///// /////// / //// ",
|
||||
" ",
|
||||
" ",
|
||||
" 00 00 00000 11 11 11111 ",
|
||||
" 000 00 0 00000 111 11 1 11111 ",
|
||||
" 000 00 00000 0000 00000 00 00000 1110011011111 1111 1111 11 11111 111111 1111 ",
|
||||
" 0 00 00 00 000 0 000 00 000 0 00 11110110110111 1 111 11 111 11 11 111 11 11 1 ",
|
||||
" 0 00000 0 00 0 00 0 0000 0000 1011011010 11 1 11 11 1111 1111 11 11 111 ",
|
||||
" 0 0000 0 00 0 00 0 00 00000 10 1111 100 11 1 11 1 11 11111 11 11 111 ",
|
||||
" 0 0000 00 00 0 00 00 00 0 00 10 1111 110011 1 11 11 11 1 11 11 11 11 ",
|
||||
" 0 000 00000 000 00000 00000 00000 10 111011111 111 11111 11111 11111 11 11 1111 ",
|
||||
" 0 00 000 00 000 0000 00 0 10 01100111 11 111 1111 11 1 11 11 111 ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "
|
||||
]
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
Binary file not shown.
After Width: | Height: | Size: 43 KiB |
Binary file not shown.
After Width: | Height: | Size: 45 KiB |
80
tests/visual_tests/styles/text-ttc-font.xml
Normal file
80
tests/visual_tests/styles/text-ttc-font.xml
Normal file
|
@ -0,0 +1,80 @@
|
|||
<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">
|
||||
|
||||
<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>
|
||||
|
||||
<!-- 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>
|
||||
|
||||
</Map>
|
|
@ -132,6 +132,7 @@ files = {
|
|||
'bbox': mapnik.Box2d(736908, 4390316, 2060771, 5942346)},
|
||||
'text-halo-rasterizer': {'sizes':[(600,400)]},
|
||||
'text-halo-transform': {'sizes':[(600,400)]},
|
||||
'text-ttc-font': {'sizes':[(600,400)]},
|
||||
'simple-E': {'bbox':mapnik.Box2d(-0.05, -0.01, 0.95, 0.01)},
|
||||
'simple-NE': {'bbox':default_text_box},
|
||||
'simple-NW': {'bbox':default_text_box},
|
||||
|
|
Loading…
Reference in a new issue