fix(core): break a label before a left parenthesis, not after it (#4553)

This commit is contained in:
John Carmack
2026-09-05 15:03:38 -07:00
committed by GitHub
parent fed6dc019b
commit 474d127bfb
8 changed files with 150 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -0,0 +1,43 @@
{
"version": 8,
"metadata": {
"test": {
"width": 128,
"height": 128
}
},
"bearing": 45,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "Point",
"coordinates":
[
0,
0
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "symbol",
"type": "symbol",
"source": "geojson",
"layout": {
"symbol-placement": "point",
"symbol-spacing": 20,
"text-allow-overlap": true,
"text-rotation-alignment": "auto",
"text-max-width": 5,
"text-field": "Freiburg(Bresigau) HBF",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
]
}
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -0,0 +1,43 @@
{
"version": 8,
"metadata": {
"test": {
"width": 128,
"height": 128
}
},
"bearing": 45,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "Point",
"coordinates":
[
0,
0
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "symbol",
"type": "symbol",
"source": "geojson",
"layout": {
"symbol-placement": "point",
"symbol-spacing": 20,
"text-allow-overlap": true,
"text-rotation-alignment": "auto",
"text-max-width": 5,
"text-field": "Freiburg (Bresigau) HBF",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
]
}
}
]
}