MapLibre text rendering with WebGL
summary
MapLibre uses a simplified pipeline that maps one code point → one glyph simplification rather than running a shaping engine like HarfBuzz, which breaks rendering for Indic and many South/Southeast Asian scripts used by hundreds of millions. Text is rasterized on the GPU via 16×16 SDF textures, assembled into glyph ranges and atlases; this is fast for scaling/rotation but produces rounded corners and artifacts. Workarounds include tiny SDF from canvas for on‑demand CJK and a server‑side private‑use shaping hack; a Metal backend and tooling were implemented and released.
AI-written summary · about
