-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add render tests for text-writing-mode layout property
- Loading branch information
1 parent
35d642b
commit 0da8c34
Showing
14 changed files
with
460 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+3.33 KB
...ration/render-tests/text-writing-mode/cjk-horizontal-vertical-mode/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 68 additions & 0 deletions
68
...egration/render-tests/text-writing-mode/cjk-horizontal-vertical-mode/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,68 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"height": 128, | ||
"width": 128 | ||
} | ||
}, | ||
"center": [ 0, 0 ], | ||
"zoom": 0, | ||
"sources": { | ||
"point": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name_jp": "マップボックス" | ||
}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ -10, 10 ] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name_jp": "マップボックス" | ||
}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ 34, 0 ] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name_jp": "マップボックス" | ||
}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ -10, -10 ] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"glyphs": "local://glyphs/{fontstack}/{range}.pbf", | ||
"layers": [ | ||
{ | ||
"id": "text", | ||
"type": "symbol", | ||
"source": "point", | ||
"layout": { | ||
"text-field": "{name_jp}", | ||
"text-writing-mode": ["horizontal", "vertical"], | ||
"text-font": [ | ||
"Open Sans Semibold", | ||
"Arial Unicode MS Bold" | ||
], | ||
"text-size": 14 | ||
} | ||
} | ||
] | ||
} |
Binary file added
BIN
+2.97 KB
...der-tests/text-writing-mode/cjk-multiline-vertical-horizontal-mode/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 58 additions & 0 deletions
58
...ender-tests/text-writing-mode/cjk-multiline-vertical-horizontal-mode/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,58 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"height": 128, | ||
"width": 128 | ||
} | ||
}, | ||
"center": [ 0, 0 ], | ||
"zoom": 0, | ||
"sources": { | ||
"point": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name_jp": "マップボックス\nボックス" | ||
}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ 0, 14 ] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name_jp": "マップボックス\nボックス" | ||
}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ 0, -28 ] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"glyphs": "local://glyphs/{fontstack}/{range}.pbf", | ||
"layers": [ | ||
{ | ||
"id": "text", | ||
"type": "symbol", | ||
"source": "point", | ||
"layout": { | ||
"text-field": "{name_jp}", | ||
"text-writing-mode": ["vertical", "horizontal"], | ||
"text-font": [ | ||
"Open Sans Semibold", | ||
"Arial Unicode MS Bold" | ||
], | ||
"text-size": 12 | ||
} | ||
} | ||
] | ||
} |
Binary file added
BIN
+3.49 KB
...ts/text-writing-mode/cjk-variable-anchors-vertical-horizontal-mode/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
80 changes: 80 additions & 0 deletions
80
...ests/text-writing-mode/cjk-variable-anchors-vertical-horizontal-mode/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,80 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"height": 128, | ||
"width": 128 | ||
} | ||
}, | ||
"center": [ 0, 0 ], | ||
"zoom": 0, | ||
"sources": { | ||
"point": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name_jp": "マップボックス" | ||
}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ 0, 8 ] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name_jp": "マップボックス" | ||
}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ 0, 8 ] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name_jp": "マップボックス" | ||
}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ 0, 8 ] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name_jp": "マップ" | ||
}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ 0, -34 ] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"glyphs": "local://glyphs/{fontstack}/{range}.pbf", | ||
"layers": [ | ||
{ | ||
"id": "text", | ||
"type": "symbol", | ||
"source": "point", | ||
"layout": { | ||
"text-field": "{name_jp}", | ||
"text-writing-mode": ["vertical", "horizontal"], | ||
"text-radial-offset": 1, | ||
"text-variable-anchor": ["center", "left", "right", "bottom"], | ||
"text-font": [ | ||
"Open Sans Semibold", | ||
"Arial Unicode MS Bold" | ||
], | ||
"text-size": 14 | ||
} | ||
} | ||
] | ||
} |
Binary file added
BIN
+3.24 KB
.../render-tests/text-writing-mode/cjk-variable-anchors-vertical-mode/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions
70
...on/render-tests/text-writing-mode/cjk-variable-anchors-vertical-mode/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,70 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"height": 128, | ||
"width": 128 | ||
} | ||
}, | ||
"center": [ 0, 0 ], | ||
"zoom": 0, | ||
"sources": { | ||
"point": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name_jp": "マップボックス" | ||
}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ 0, 0 ] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name_jp": "マップボックス" | ||
}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ 0, 0 ] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name_jp": "マップボックス" | ||
}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ 0, 0 ] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"glyphs": "local://glyphs/{fontstack}/{range}.pbf", | ||
"layers": [ | ||
{ | ||
"id": "text", | ||
"type": "symbol", | ||
"source": "point", | ||
"layout": { | ||
"text-field": "{name_jp}", | ||
"text-writing-mode": ["vertical"], | ||
"text-radial-offset": 1, | ||
"text-variable-anchor": ["left", "right", "center"], | ||
"text-font": [ | ||
"Open Sans Semibold", | ||
"Arial Unicode MS Bold" | ||
], | ||
"text-size": 14 | ||
} | ||
} | ||
] | ||
} |
Binary file added
BIN
+3.19 KB
...ration/render-tests/text-writing-mode/cjk-vertical-horizontal-mode/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 68 additions & 0 deletions
68
...egration/render-tests/text-writing-mode/cjk-vertical-horizontal-mode/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,68 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"height": 128, | ||
"width": 128 | ||
} | ||
}, | ||
"center": [ 0, 0 ], | ||
"zoom": 0, | ||
"sources": { | ||
"point": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name_jp": "マップボックス" | ||
}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ -10, 8 ] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name_jp": "マップボックス" | ||
}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ 10, 8 ] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name_jp": "マップボックス" | ||
}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ 0, -34 ] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"glyphs": "local://glyphs/{fontstack}/{range}.pbf", | ||
"layers": [ | ||
{ | ||
"id": "text", | ||
"type": "symbol", | ||
"source": "point", | ||
"layout": { | ||
"text-field": "{name_jp}", | ||
"text-writing-mode": ["vertical", "horizontal"], | ||
"text-font": [ | ||
"Open Sans Semibold", | ||
"Arial Unicode MS Bold" | ||
], | ||
"text-size": 14 | ||
} | ||
} | ||
] | ||
} |
Binary file added
BIN
+2.22 KB
test/integration/render-tests/text-writing-mode/cjk-vertical-mode/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.