Add local MapLibre glyph fonts under web and use them in OSM Liberty style.
CI / test (push) Successful in 4s
CI / test (push) Successful in 4s
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
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
@import "../../mixins";
|
||||
|
||||
.roboto-font('roboto-slab', 'Roboto-Slab', 'Bold', 700, normal);
|
||||
@@ -0,0 +1,3 @@
|
||||
@import "../../mixins";
|
||||
|
||||
.roboto-font('roboto-slab', 'Roboto-Slab', 'Light', 300, normal);
|
||||
@@ -0,0 +1,3 @@
|
||||
@import "../../mixins";
|
||||
|
||||
.roboto-font('roboto-slab', 'Roboto-Slab', 'Regular', 400, normal);
|
||||
@@ -0,0 +1,3 @@
|
||||
@import "../../mixins";
|
||||
|
||||
.roboto-font('roboto-slab', 'Roboto-Slab', 'Thin', 100, normal);
|
||||
@@ -0,0 +1,4 @@
|
||||
@import "roboto-slab-fontface-regular";
|
||||
@import "roboto-slab-fontface-light";
|
||||
@import "roboto-slab-fontface-thin";
|
||||
@import "roboto-slab-fontface-bold";
|
||||
@@ -0,0 +1,47 @@
|
||||
@font-face {
|
||||
font-family: 'Roboto-Slab';
|
||||
src: url('../../fonts/roboto-slab/Roboto-Slab-Thin.woff2') format('woff2'), url('../../fonts/roboto-slab/Roboto-Slab-Thin.woff') format('woff');
|
||||
font-weight: 100;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto-Slab-Thin';
|
||||
src: url('../../fonts/roboto-slab/Roboto-Slab-Thin.woff2') format('woff2'), url('../../fonts/roboto-slab/Roboto-Slab-Thin.woff') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto-Slab';
|
||||
src: url('../../fonts/roboto-slab/Roboto-Slab-Light.woff2') format('woff2'), url('../../fonts/roboto-slab/Roboto-Slab-Light.woff') format('woff');
|
||||
font-weight: 300;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto-Slab-Light';
|
||||
src: url('../../fonts/roboto-slab/Roboto-Slab-Light.woff2') format('woff2'), url('../../fonts/roboto-slab/Roboto-Slab-Light.woff') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto-Slab';
|
||||
src: url('../../fonts/roboto-slab/Roboto-Slab-Regular.woff2') format('woff2'), url('../../fonts/roboto-slab/Roboto-Slab-Regular.woff') format('woff');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto-Slab-Regular';
|
||||
src: url('../../fonts/roboto-slab/Roboto-Slab-Regular.woff2') format('woff2'), url('../../fonts/roboto-slab/Roboto-Slab-Regular.woff') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto-Slab';
|
||||
src: url('../../fonts/roboto-slab/Roboto-Slab-Bold.woff2') format('woff2'), url('../../fonts/roboto-slab/Roboto-Slab-Bold.woff') format('woff');
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto-Slab-Bold';
|
||||
src: url('../../fonts/roboto-slab/Roboto-Slab-Bold.woff2') format('woff2'), url('../../fonts/roboto-slab/Roboto-Slab-Bold.woff') format('woff');
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
@import "../../mixins";
|
||||
|
||||
@include roboto-font('roboto-slab', 'Roboto-Slab', 'Bold', 700, normal);
|
||||
@@ -0,0 +1,3 @@
|
||||
@import "../../mixins";
|
||||
|
||||
@include roboto-font('roboto-slab', 'Roboto-Slab', 'Light', 300, normal);
|
||||
@@ -0,0 +1,3 @@
|
||||
@import "../../mixins";
|
||||
|
||||
@include roboto-font('roboto-slab', 'Roboto-Slab', 'Regular', 400, normal);
|
||||
@@ -0,0 +1,3 @@
|
||||
@import "../../mixins";
|
||||
|
||||
@include roboto-font('roboto-slab', 'Roboto-Slab', 'Thin', 100, normal);
|
||||
@@ -0,0 +1,4 @@
|
||||
@import "roboto-slab-fontface-regular";
|
||||
@import "roboto-slab-fontface-light";
|
||||
@import "roboto-slab-fontface-thin";
|
||||
@import "roboto-slab-fontface-bold";
|
||||
Reference in New Issue
Block a user