-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Naive test of ideographic breaking with interpunct/partition sign (U+…
…2027).
- Loading branch information
Showing
2 changed files
with
160 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+50.5 KB
render-tests/text-max-width/ideographic-interpunct-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.
160 changes: 160 additions & 0 deletions
160
render-tests/text-max-width/ideographic-interpunct-breaking/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
] | ||
} |