-
-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Port CJK browser test to render test [#3006, #3162] * add platform-specific expected images for local ideographs render test. [#3166] * Ubuntu expected is tofu * github actions ubuntu runner: apt install CJK fonts for render tests [#3166] * Commit expected Ubuntu local ideographs image with noto fonts installed from apt [#3166]
- Loading branch information
Showing
5 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
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
Binary file added
BIN
+8.44 KB
test/integration/render/tests/text-local-ideographs/cjk/expected-mac.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.2 KB
test/integration/render/tests/text-local-ideographs/cjk/expected-ubuntu.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.92 KB
test/integration/render/tests/text-local-ideographs/cjk/expected-windows.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 65 additions & 0 deletions
65
test/integration/render/tests/text-local-ideographs/cjk/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,65 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"localIdeographFontFamily": "sans-serif", | ||
"width": 800, | ||
"height": 600 | ||
} | ||
}, | ||
"zoom": 8, | ||
"sources": { | ||
"sample": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "Feature", | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [0, 0] | ||
}, | ||
"properties": { | ||
"name_en": "abcde", | ||
"name_ja": "あいうえお", | ||
"name_ch": "阿衣乌唉哦", | ||
"name_kr": "아이우" | ||
} | ||
} | ||
} | ||
}, | ||
"glyphs": "local://glyphs/{fontstack}/{range}.pbf", | ||
"layers": [ | ||
{ | ||
"id": "sample-text-left", | ||
"type": "symbol", | ||
"source": "sample", | ||
"layout": { | ||
"text-anchor": "top", | ||
"text-field": "{name_ja}{name_en}", | ||
"text-font": ["Open Sans Semibold", "Arial Unicode MS Bold"], | ||
"text-offset": [-10, 0] | ||
} | ||
}, | ||
{ | ||
"id": "sample-text-center", | ||
"type": "symbol", | ||
"source": "sample", | ||
"layout": { | ||
"text-anchor": "top", | ||
"text-field": "{name_ch}{name_kr}", | ||
"text-font": ["Open Sans Semibold", "Arial Unicode MS Bold"], | ||
"text-offset": [0, 0] | ||
} | ||
}, | ||
{ | ||
"id": "sample-text-right", | ||
"type": "symbol", | ||
"source": "sample", | ||
"layout": { | ||
"text-anchor": "top", | ||
"text-field": "{name_en}{name_ja}", | ||
"text-font": ["Open Sans Semibold", "Arial Unicode MS Bold"], | ||
"text-offset": [10, 0] | ||
} | ||
} | ||
] | ||
} |