Skip to content

Make font detection and loading independent from OpenLayers #1306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2025

Conversation

ahocevar
Copy link
Member

@ahocevar ahocevar commented May 15, 2025

This pull request fixes an issue with font detection, which can be seen on https://openlayers.org/ol-mapbox-style/examples/mapbox.html (Mapbox API key required). In that example, the DIN font is sometimes incorrectly used in the italic version:

wrong:
Untitled

correct:
Untitled

In ol-mapbox-style, the font detection code is now independent from OpenLayers non-API functionality. A related, accompanying change on the OpenLayers side is openlayers/openlayers#16854, but this pull request also fixes the problem without that.

@ahocevar ahocevar merged commit ad9d0a0 into main May 15, 2025
1 check passed
@ahocevar ahocevar deleted the font-loading branch May 15, 2025 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant