Open jasperdemmers opened 3 days ago
Hi @jasperdemmers, if the font requesting from the server only contains glyphs for the code points in the range 0–255, it is not possible to render the Euro sign (U+20AC) directly with that font, because the Euro sign’s Unicode code point (U+20AC, decimal 8364) lies outside this range.
So possible options to render it correctly:
Hey @evil159, thanks for the response! I switched to full local glyph rasterization mode and it works like a charm. Do you know if this has any significant performance impact compared to not doing this locally? Thanks in advance!
I'm using Mapbox Maps Flutter version 2.4.0, which introduces the experimental property
MapboxMap.styleGlyphURL
. This feature allows for applying custom fonts at runtime, including in symbol layers. However, I've encountered an issue where the Euro symbol (€) is not rendered when using a custom font. This appears to be because the glyph range specified (0-255
) does not include the Euro symbol, which is located at Unicode code pointU+20AC
.Steps to Reproduce:
MapboxMap.styleGlyphURL
to apply a custom font with the glyph range0-255
.Expected Behavior:
The Euro symbol (€) should be rendered correctly in the symbol layer when using a custom font.
Actual Behavior:
The Euro symbol (€) is not visible or rendered in the symbol layer.
Additional Context:
text-font
expression for the symbol layer seems to only allow pre-defined fonts, which limits the ability to specify custom glyph ranges.0-255
and requires an extended range, such as0-767
, to be included.Questions:
mapbox-maps-flutter
?text-font
expression to support custom fonts more flexibly?Environment: