Skip to content

Make OpenLayers webfonts opt-in with download controls - #17

Merged
pjeweb merged 2 commits into
mainfrom
feat/webfont-controls
Nov 2, 2026
Merged

pjeweb merged 2 commits into
mainfrom
feat/webfont-controls

Conversation

@pjeweb

@pjeweb pjeweb commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Make OpenLayers font metadata rewriting opt-in with per-style olWebfonts: true. When omitted or false, preserve upstream ol:webfonts metadata even if font families are configured, so the proxy does not impose OpenLayers font behavior on other consumers.

Keep webfonts as the separate family/weight download policy. Styles can disable all proxy downloads, a family, or individual normal/italic weights; explicit false face entries now return empty CSS instead of raising a configuration error. Existing weight aliases continue to work.

When opted in, retain the local metadata template even with downloads disabled, because applyStyle() treats false metadata as absent. Document configuration examples, cache invalidation, and the upstream rich-text font-loading limitation.

Validation: composer test -- --no-progress (175 tests, 515 assertions, no failures; one existing warning and four skips), composer analyse -- --no-progress (no errors), and git diff --check.

@pjeweb pjeweb changed the title Add explicit webfont download controls Make OpenLayers webfonts opt-in with download controls Nov 2, 2026
@pjeweb
pjeweb merged commit 59c526c into main Nov 2, 2026
6 checks passed
@pjeweb
pjeweb deleted the feat/webfont-controls branch November 2, 2026 17:20
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