Skip to content

Commit

Permalink
Naive test of ideographic breaking with interpunct/partition sign (U+…
Browse files Browse the repository at this point in the history
…2027).
  • Loading branch information
ChrisLoer committed Nov 30, 2016
1 parent 7ea65ba commit d85534f
Show file tree
Hide file tree
Showing 2 changed files with 160 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
160 changes: 160 additions & 0 deletions render-tests/text-max-width/ideographic-interpunct-breaking/style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
{
"version": 8,
"metadata": {
"test": {
"ignored": {
"js": "https://github.com/mapbox/mapbox-gl-js/issues/3708"
},
"height": 512
}
},
"sources": {
"mapbox": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"name": "技指計代‧式灣文人觀觀人之之易"
},
"geometry": {
"type": "Point",
"coordinates": [
-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": "Jingleheimer‧schmidt"
},
"geometry": {
"type": "Point",
"coordinates": [
94.21875,
34.30714385628804
]
}
},
{
"type": "Feature",
"properties": {
"name": "mixed 技指計‧代式灣文人觀觀"
},
"geometry": {
"type": "Point",
"coordinates": [
97.03125,
-44.087585028245165
]
}
}
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "literal",
"type": "symbol",
"source": "mapbox",
"layout": {
"text-field": "{name}",
"text-font": [
"NotoCJK"
],
"text-max-width": 5
}
}
]
}

0 comments on commit d85534f

Please sign in to comment.