Browse code

Use variable Roboto Slab font

Martin Filipovic Hinrichs authored on02/02/2026 18:29:51
Showing5 changed files
... ...
@@ -34,22 +34,22 @@
34 34
   src: url('/bundles/weinmanufakturtheme/fonts/roboto-v30-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
35 35
 }
36 36
 
37
-/* roboto slab 400 - latin-ext */
37
+/* roboto slab variable - latin-ext */
38 38
 @font-face {
39 39
   font-family: 'Roboto Slab';
40 40
   font-style: normal;
41
-  font-weight: 400;
41
+  font-weight: 100 900;
42 42
   font-display: swap;
43
-  src: url('/bundles/weinmanufakturtheme/fonts/roboto-slab-latin-ext-400.woff2') format('woff2');
43
+  src: url('/bundles/weinmanufakturtheme/fonts/roboto-slab-variable-latin-ext.woff2') format('woff2');
44 44
   unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
45 45
 }
46
-/* roboto slab 400 - latin */
46
+/* roboto slab variable - latin */
47 47
 @font-face {
48 48
   font-family: 'Roboto Slab';
49 49
   font-style: normal;
50
-  font-weight: 400;
50
+  font-weight: 100 900;
51 51
   font-display: swap;
52
-  src: url('/bundles/weinmanufakturtheme/fonts/roboto-slab-latin-400.woff2') format('woff2');
52
+  src: url('/bundles/weinmanufakturtheme/fonts/roboto-slab-variable-latin.woff2') format('woff2');
53 53
   unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
54 54
 }
55 55
 
56 56
deleted file mode 100644
57 57
Binary files a/src/Resources/public/fonts/roboto-slab-latin-400.woff2 and /dev/null differ
58 58
deleted file mode 100644
59 59
Binary files a/src/Resources/public/fonts/roboto-slab-latin-ext-400.woff2 and /dev/null differ
60 60
new file mode 100644
61 61
Binary files /dev/null and b/src/Resources/public/fonts/roboto-slab-variable-latin-ext.woff2 differ
62 62
new file mode 100644
63 63
Binary files /dev/null and b/src/Resources/public/fonts/roboto-slab-variable-latin.woff2 differ