-
-
Notifications
You must be signed in to change notification settings - Fork 769
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: revert to use unicodeBlockLookup * expose some blocks * test: cjk label rendering * rmtesthtmlforlocal * fix: cover Ideo * test: add cases cjk symbols * revert: unexpose ideographs extension * test: add example to show cjk symbols * test: add render test for cjk-symbols * #5421 * test: add macos, linux expected image * add and rm expected image * add expected image * chore: comment * fix: revert rm comment * chore: rm unneeded bracket
- Loading branch information
Showing
7 changed files
with
65 additions
and
4 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
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
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
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
+15.1 KB
.../integration/render/tests/text-local-ideographs/cjk-symbols/expected-ubuntu.png
Loading
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
+17 KB
...integration/render/tests/text-local-ideographs/cjk-symbols/expected-windows.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions
43
test/integration/render/tests/text-local-ideographs/cjk-symbols/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,43 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"pixelRatio": 2, | ||
"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": "a-b,c.", | ||
"name_ja": "あーい、う。" | ||
} | ||
} | ||
} | ||
}, | ||
"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-size": 30, | ||
"text-offset": [0, -2] | ||
} | ||
} | ||
] | ||
} |