Skip to content

Commit

Permalink
add alphabet and cjk text test maplibre#1002
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanahiro committed Feb 17, 2022
1 parent 66cf172 commit 1a67cda
Show file tree
Hide file tree
Showing 2 changed files with 61 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.
61 changes: 61 additions & 0 deletions test/integration/render/tests/text-font/alphabet-cjk/style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"version": 8,
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"sources": {
"sample": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [0, 0]
},
"properties": {
"name_en": "abc",
"name_ja": "あいう",
"name_ch": "阿衣乌"
}
}
]
}
}
},
"layers": [
{
"id": "sample-text-left",
"type": "symbol",
"source": "sample",
"layout": {
"text-anchor": "top",
"text-field": "{name_ja}\n{name_en}",
"text-font": ["NotoCJK"],
"text-offset": [-10, 0]
}
},
{
"id": "sample-text-center",
"type": "symbol",
"source": "sample",
"layout": {
"text-anchor": "top",
"text-field": "{name_ja}{name_en}{name_ch}",
"text-font": ["NotoCJK"],
"text-offset": [0, 0]
}
},
{
"id": "sample-text-right",
"type": "symbol",
"source": "sample",
"layout": {
"text-anchor": "top",
"text-field": "{name_en}\n{name_ch}",
"text-font": ["NotoCJK"],
"text-offset": [10, 0]
}
}
]
}

0 comments on commit 1a67cda

Please sign in to comment.