*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects

Ensure text remains visible during webfont load

Merged Moser, Maximilian requested to merge mm/font-swap into master
1 file
+ 16
0
Compare changes
  • Side-by-side
  • Inline
@@ -6,72 +6,84 @@
@@ -6,72 +6,84 @@
src: url("@{font-path}/Roboto-Thin.ttf") format("truetype");
src: url("@{font-path}/Roboto-Thin.ttf") format("truetype");
font-weight: 100; /* thin, hairline */
font-weight: 100; /* thin, hairline */
font-style: normal;
font-style: normal;
 
font-display: swap;
}
}
@font-face {
@font-face {
font-family: "Roboto";
font-family: "Roboto";
src: url("@{font-path}/Roboto-Light.ttf") format("truetype");
src: url("@{font-path}/Roboto-Light.ttf") format("truetype");
font-weight: 300; /* light */
font-weight: 300; /* light */
font-style: normal;
font-style: normal;
 
font-display: swap;
}
}
@font-face {
@font-face {
font-family: "Roboto";
font-family: "Roboto";
src: url("@{font-path}/Roboto-Regular.ttf") format("truetype");
src: url("@{font-path}/Roboto-Regular.ttf") format("truetype");
font-weight: 400; /* normal, regular */
font-weight: 400; /* normal, regular */
font-style: normal;
font-style: normal;
 
font-display: swap;
}
}
@font-face {
@font-face {
font-family: "Roboto";
font-family: "Roboto";
src: url("@{font-path}/Roboto-Medium.ttf") format("truetype");
src: url("@{font-path}/Roboto-Medium.ttf") format("truetype");
font-weight: 500; /* medium */
font-weight: 500; /* medium */
font-style: normal;
font-style: normal;
 
font-display: swap;
}
}
@font-face {
@font-face {
font-family: "Roboto";
font-family: "Roboto";
src: url("@{font-path}/Roboto-Bold.ttf") format("truetype");
src: url("@{font-path}/Roboto-Bold.ttf") format("truetype");
font-weight: 700; /* bold */
font-weight: 700; /* bold */
font-style: normal;
font-style: normal;
 
font-display: swap;
}
}
@font-face {
@font-face {
font-family: "Roboto";
font-family: "Roboto";
src: url("@{font-path}/Roboto-Black.ttf") format("truetype");
src: url("@{font-path}/Roboto-Black.ttf") format("truetype");
font-weight: 900; /* black, heavy */
font-weight: 900; /* black, heavy */
font-style: normal;
font-style: normal;
 
font-display: swap;
}
}
@font-face {
@font-face {
font-family: "Roboto";
font-family: "Roboto";
src: url("@{font-path}/Roboto-ThinItalic.ttf") format("truetype");
src: url("@{font-path}/Roboto-ThinItalic.ttf") format("truetype");
font-weight: 100; /* thin, hairline */
font-weight: 100; /* thin, hairline */
font-style: italic;
font-style: italic;
 
font-display: swap;
}
}
@font-face {
@font-face {
font-family: "Roboto";
font-family: "Roboto";
src: url("@{font-path}/Roboto-LightItalic.ttf") format("truetype");
src: url("@{font-path}/Roboto-LightItalic.ttf") format("truetype");
font-weight: 300; /* light */
font-weight: 300; /* light */
font-style: italic;
font-style: italic;
 
font-display: swap;
}
}
@font-face {
@font-face {
font-family: "Roboto";
font-family: "Roboto";
src: url("@{font-path}/Roboto-Italic.ttf") format("truetype");
src: url("@{font-path}/Roboto-Italic.ttf") format("truetype");
font-weight: 400; /* normal, regular */
font-weight: 400; /* normal, regular */
font-style: italic;
font-style: italic;
 
font-display: swap;
}
}
@font-face {
@font-face {
font-family: "Roboto";
font-family: "Roboto";
src: url("@{font-path}/Roboto-MediumItalic.ttf") format("truetype");
src: url("@{font-path}/Roboto-MediumItalic.ttf") format("truetype");
font-weight: 500; /* medium */
font-weight: 500; /* medium */
font-style: italic;
font-style: italic;
 
font-display: swap;
}
}
@font-face {
@font-face {
font-family: "Roboto";
font-family: "Roboto";
src: url("@{font-path}/Roboto-BoldItalic.ttf") format("truetype");
src: url("@{font-path}/Roboto-BoldItalic.ttf") format("truetype");
font-weight: 700; /* bold */
font-weight: 700; /* bold */
font-style: italic;
font-style: italic;
 
font-display: swap;
}
}
@font-face {
@font-face {
font-family: "Roboto";
font-family: "Roboto";
src: url("@{font-path}/Roboto-BlackItalic.ttf") format("truetype");
src: url("@{font-path}/Roboto-BlackItalic.ttf") format("truetype");
font-weight: 900; /* black, heavy */
font-weight: 900; /* black, heavy */
font-style: italic;
font-style: italic;
 
font-display: swap;
}
}
/* PT Sans */
/* PT Sans */
@@ -80,22 +92,26 @@
@@ -80,22 +92,26 @@
src: url("@{font-path}/PTSans-Regular.ttf") format("truetype");
src: url("@{font-path}/PTSans-Regular.ttf") format("truetype");
font-weight: 400; /* normal, regular */
font-weight: 400; /* normal, regular */
font-style: normal;
font-style: normal;
 
font-display: swap;
}
}
@font-face {
@font-face {
font-family: "PT Sans";
font-family: "PT Sans";
src: url("@{font-path}/PTSans-Bold.ttf") format("truetype");
src: url("@{font-path}/PTSans-Bold.ttf") format("truetype");
font-weight: 700; /* bold */
font-weight: 700; /* bold */
font-style: normal;
font-style: normal;
 
font-display: swap;
}
}
@font-face {
@font-face {
font-family: "PT Sans";
font-family: "PT Sans";
src: url("@{font-path}/PTSans-Italic.ttf") format("truetype");
src: url("@{font-path}/PTSans-Italic.ttf") format("truetype");
font-weight: 400; /* normal, regular */
font-weight: 400; /* normal, regular */
font-style: italic;
font-style: italic;
 
font-display: swap;
}
}
@font-face {
@font-face {
font-family: "PT Sans";
font-family: "PT Sans";
src: url("@{font-path}/PTSans-BoldItalic.ttf") format("truetype");
src: url("@{font-path}/PTSans-BoldItalic.ttf") format("truetype");
font-weight: 700; /* bold */
font-weight: 700; /* bold */
font-style: italic;
font-style: italic;
 
font-display: swap;
}
}
Loading