Skip to content

Commit

Permalink
Add more test cases for ideographic breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Wojciechowski committed Oct 21, 2016
1 parent 6f0d8a0 commit 77b281c
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 6 deletions.
Binary file modified render-tests/text-max-width/ideographic-breaking/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
118 changes: 112 additions & 6 deletions render-tests/text-max-width/ideographic-breaking/style.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"version": 8,
"metadata": {
"test": {
"height": 256
"height": 512
}
},
"sources": {
Expand All @@ -13,12 +13,118 @@
"features": [
{
"type": "Feature",
"properties": {},
"properties": {
"name": "技指計代式灣文人觀觀人之之易"
},
"geometry": {
"type": "Point",
"coordinates": [
0,
0
-1.0546875,
30.14512718337613
]
}
},
{
"type": "Feature",
"properties": {
"name": "技指計代式灣文人觀觀人之之"
},
"geometry": {
"type": "Point",
"coordinates": [
-5.625,
71.85622888185527
]
}
},
{
"type": "Feature",
"properties": {
"name": "技指計代式灣文人觀觀人之"
},
"geometry": {
"type": "Point",
"coordinates": [
1.40625,
-40.44694705960048
]
}
},
{
"type": "Feature",
"properties": {
"name": "技指計代式灣文人觀觀人"
},
"geometry": {
"type": "Point",
"coordinates": [
-106.5234375,
72.18180355624855
]
}
},
{
"type": "Feature",
"properties": {
"name": "技指計代式灣文人觀觀"
},
"geometry": {
"type": "Point",
"coordinates": [
-113.5546875,
32.54681317351514
]
}
},
{
"type": "Feature",
"properties": {
"name": "技指計代式灣文人觀"
},
"geometry": {
"type": "Point",
"coordinates": [
-114.60937499999999,
-43.83452678223682
]
}
},
{
"type": "Feature",
"properties": {
"name": "技指計代式灣文人"
},
"geometry": {
"type": "Point",
"coordinates": [
92.8125,
72.39570570653261
]
}
},
{
"type": "Feature",
"properties": {
"name": "技指計代式灣文"
},
"geometry": {
"type": "Point",
"coordinates": [
94.21875,
34.30714385628804
]
}
},
{
"type": "Feature",
"properties": {
"name": "技指計代式灣"
},
"geometry": {
"type": "Point",
"coordinates": [
97.03125,
-44.087585028245165
]
}
}
Expand All @@ -40,11 +146,11 @@
"type": "symbol",
"source": "mapbox",
"layout": {
"text-field": "技指計代式灣文人觀觀人之之易",
"text-field": "{name}",
"text-font": [
"NotoCJK"
],
"text-max-width": 7
"text-max-width": 5
}
}
]
Expand Down

0 comments on commit 77b281c

Please sign in to comment.