Glyph fixtures are built from Open Sans 1.10 and lack U+1E9E (ẞ), which makes German uppercase labels unrenderable
Motivation
U+1E9E LATIN CAPITAL LETTER SHARP S (ẞ) is the uppercase form of ß. It has been part of the official German orthography ruleset since 2017 and appears in street names, place names and any uppercased German label — STRAẞE, GROẞENHAIN. It is an ordinary Latin letter.
No Mapbox font stack provides it. A label containing it loses the character with no warning of any kind, so the rendered label is simply wrong and nothing explains why.
This also blocks German uppercasing support. transformText calls toLocaleUpperCase(), which always turns ß into SS, never ẞ. Changing that is only worth doing once the glyphs exist, so this issue is about glyph coverage only — the uppercasing behaviour is explicitly out of scope.
The production font server is affected, not only the fixtures
Requesting range 7680-7935 from api.mapbox.com/fonts/v1/mapbox/{font}/7680-7935.pbf on 2026-09-19:
| Font stack | glyphs in range | U+1E9E | U+00DF (ß) |
|---|---|---|---|
| Open Sans Semibold / Regular / Bold | 100 / 256 | missing | present |
| DIN Pro Regular / Medium / Bold | 245 / 256 | missing | present |
| Arial Unicode MS Regular / Bold | 246 / 256 | missing | present |
All of them serve the range, so this is not a missing-range problem — the codepoint is unset. DIN Pro, the font of the Mapbox Standard styles, covers 245 of 256 positions there, so it is not a coverage-budget decision either.
Root cause for the Open Sans stacks
Those glyphs come from Open Sans 1.10 (Ascender Corporation), which predates the character. Google replaced Open Sans with 3.000 on 2021-02-10 (google/fonts commit 4ebf835fd); the current 3.003 contains U+1E9E.
This is measurable rather than inferred. Comparing all 191 advance widths from 0-255.pbf at 24 px:
| Font release | matches server data | matches repo fixture |
|---|---|---|
| Open Sans 1.10 (883 chars, no U+1E9E) | 191 / 191 | 191 / 191 |
| Open Sans 3.003 (1010 chars, has U+1E9E) | 185 / 191 | 185 / 191 |
The six mismatches are ^, `, }, ´, ¼ and ß itself, whose advance changed from 15 to 16 px between releases. Server and fixtures both report 15. The fixtures in test/integration/glyphs/ are built from the same 2011 release the server still serves.
I have not established why DIN Pro and Arial Unicode MS lack the character — those are different fonts and need their own look.
Two failure modes
| Case | Condition | Result |
|---|---|---|
| B | range served, codepoint unset — this is what api.mapbox.com does today | renders STRAE, character dropped |
| A | the range request fails (self-hosted or incomplete glyph endpoint) | the whole label disappears |
Case B is src/symbol/shaping.ts:649 (if (!glyph) continue;). Dropping an unavailable glyph is defensible, but it is silent, so a wrong label looks like correct output. This is what a user sees on a live Mapbox map.
Case A is not specific to this character and affects anyone self-hosting glyphs with incomplete range coverage. The chain is:
GlyphLoaderloads each font of a stack separately and only errors when every font fails for that range (glyph_loader.ts:98) — so it is already partially robust.- When it does error,
asyncAllretains that error (util.ts:266) andGlyphManager.getGlyphsdiscards the entire batch (glyph_manager.ts:182), including ranges that loaded fine.
So one failed range request removes a whole label rather than one character — and in fact more than that. In a debug page with four labels, where only two contain ẞ, the map renders nothing at all: STRASSE and Straße disappear as well. The discarded batch takes down every label in the symbol bucket, not only those using the character.
Design Alternatives
- Do nothing. German uppercase labels stay silently wrong on every Mapbox style.
- Regenerate the Open Sans fixtures from 3.003. Re-renders every text-bearing reference image: 668 render tests and 41 query tests use
text-field, out of 3410 reference PNGs. Each needs review, not blind re-recording — and it would not change what api.mapbox.com serves. - Add range 7680-7935 to the fixture stacks. Enables test coverage. Measured: no regressions (see below).
- Fix the case A error handling so a failed range degrades to "render what loaded".
- Add a
warnOncewhen a requested codepoint has no glyph. Cheap, and would have made this diagnosable immediately. - Regenerate the served font stacks so U+1E9E is present. The only change that fixes the reported symptom — and outside this repository.
Design
The parts that belong to this repository are 3 + 4 + 5, best as separate PRs:
- PR 1 — fixture coverage and a regression test (low risk). Opened: (link)
- PR 2 — error handling (behavioural). In
GlyphManager.getGlyphs, treat a failed range request as "those glyphs are unavailable" instead of failing the batch. Callers already handlenullglyphs, since that is the normal case for an unset codepoint in a served range. - PR 3 — diagnostics.
warnOncenext toshaping.ts:649, rate-limited per stack and codepoint so an unsupported script cannot flood the console.
Alternative 6 is the one that fixes the symptom, and I cannot do it from outside — the served stacks are Mapbox-internal. I am raising it here because the fixtures and the rendering path live here, and because someone with access to the font pipeline will see it. If there is a better venue for that part, please redirect me.
I am not proposing alternative 2; whether to re-review ~700 reference images is a maintainer call.
Measurements for alternative 3
Full render suite, merge base versus a branch adding the range, same machine and browser (Chromium 141, CI=true):
| failing tests | |
|---|---|
| merge base | 84 |
| with range added | 36 |
| regressions introduced | 0 |
No test fails with the range added that does not already fail without it.
The 48-test difference is not an improvement from the change — it is flakiness. All 48 are building/* (plus 3 front-cutoff/*), none glyph-related, and re-running building/ alone on the unmodified merge base gives 11 failures instead of 48. The 36 failures common to both runs are identical in name and category and are environment-related (software rendering in a container).
Worth stating explicitly, because the intuitive argument is wrong: this range can reach existing tests. No style.json uses characters from U+1E00–U+1EFF, but 99 vector tile fixtures contain Vietnamese characters from that block, and 189 render tests combine such tiles with the Open Sans stack. Those tests do not change in practice — but that is an empirical result, not a structural guarantee. Anyone extending this range further should re-run the suite rather than reason about it.
Mock-Up
Four runs of one render test, reproducing both failure modes:
| Case | Font stack | Output |
|---|---|---|
control, STRASSE ß |
Open Sans Semibold | renders fully |
A, STRAẞE |
Open Sans Semibold, range absent | empty image |
B, STRAẞE |
NotoCJK, range served, codepoint unset | STRAE |
with range added, STRAẞE |
Open Sans Semibold + generated 7680-7935 | renders fully |
Concepts
No new API and no new terminology — "glyph range" and "font stack" already cover it. The only shift is that a stack's codepoint coverage becomes something a test can assert, and that an unavailable glyph stops being invisible.
Implementation
JavaScript. PR 1 is fixture data plus one render test, no runtime change. PR 2 is contained in GlyphManager.getGlyphs: collect per-range failures instead of propagating the first error through asyncAll, and return what resolved. PR 3 adds a rate-limited warnOnce at shaping.ts:649.
C++ / gl-native. The fixture change is shared through the render test suite, so gl-native picks up the new test; it carries the usual skip-test for native until its behaviour there is confirmed. The asyncAll handling is JS-specific — whether gl-native shares the all-or-nothing behaviour needs a separate look.
Edge cases. Case B behaviour must be preserved: a served range with an unset codepoint has to keep rendering the rest of the label. Mixing glyphs from two font releases within one fixture stack is safe here because the shared characters are metric-identical (191/191 above); PR 1 notes this in test/integration/README.md.
Ranges should be generated with fontnik, the project's own tooling. For reference, reading a fontnik-generated range back through src/style/parse_glyph_pbf.ts yields a valid U+1E9E glyph, and regenerating the existing 1.10 fixtures with the same pipeline reproduces their metrics exactly.
Source: mapbox/mapbox-gl-js