Replies: 2 comments 5 replies
-
|
Thanks for taking the time to open this discussion! |
Beta Was this translation helpful? Give feedback.
-
|
The original design actually assumed the Mapbox Fonts API. We’ve all been getting lucky that it’s possible to emulate this API using a simple HTTP server. However, the more fundamental issue is that MapLibre doesn’t have the concept of font fallbacks at all when using server-side fonts: maplibre/maplibre-gl-js#4563. That’s why we treat the whole Fortunately, In principle, a further change to the style spec could allow |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
From https://maplibre.org/maplibre-style-spec/glyphs/
This doesn't seem ideal for the case where the data is available on a simple HTTP service (e.g. using PMTiles with byte range requests). It still works for cases where there is no fallback (i.e. the font stack only has a single entry). However when there are two or more entries in the
text-fontarray, the HTTP GET looks likehttps://server/fonts/font1,font2/0-255.pbfwhich is only going to work if thathttps://server/fonts/is a API service endpoint, not a stack of files.I'd like to be able to specify semantics for the glyph template to "use each font in the stack in turn", as opposed to "put the stack entries in here".
I couldn't find a previous discussion on this, but has it been considered? Any recommendations or thoughts?
Beta Was this translation helpful? Give feedback.
All reactions