Files
Andriy Oblivantsev 2d1d93c455
CI / test (push) Successful in 4s
Add local MapLibre glyph fonts under web and use them in OSM Liberty style.
Commit bundled PBF font ranges in web/fonts and point the style glyph template to local files to avoid external glyph 404s.

Made-with: Cursor
2026-03-02 22:08:01 +00:00

21 lines
620 B
Plaintext

@roboto-font-path: '../../../fonts';
.roboto-font(@folder, @variant, @type, @weight, @style) {
@font-full-path: '@{roboto-font-path}/@{folder}/@{variant}';
@font-face {
font-family: '@{variant}';
src: url('@{font-full-path}-@{type}.woff2') format('woff2'),
url('@{font-full-path}-@{type}.woff') format('woff');
font-weight: @weight;
font-style: @style;
}
@font-face {
font-family: '@{variant}-@{type}';
src: url('@{font-full-path}-@{type}.woff2') format('woff2'),
url('@{font-full-path}-@{type}.woff') format('woff');
}
}