| Permalink |
|---|
/Idex.html |
Website (GIT -Seiten)
Viele von uns verwenden Google -Schriftarten über eine CDN. Deutschland hat jedoch entschieden, dass diese DSGVO in der Verantwortung des Standortbesitzers für Rechtsstreitigkeiten offen bleibt.
Wir können immer noch Google -Schriftarten anzeigen nach:
HINWEIS : Diese Seite konzentriert sich auf Google -Schriftarten, aber die gleichen Prinzipien gelten für jede andere Art von Webschrift.
Font Squirrel Dies funktionierte für "Roboto", scheiterte jedoch mit den statischen Schriftversionen von "Lato" und "Open Sans".
Creative Fabrica Ich habe das für "Lato" und "Öffnen sans" statische Dateien verwendet. Ich musste jede Variante nacheinander hochladen.
Mir wurde geraten, die Schriftarten im Kopf der HTML -Seite vorzuladen. Dies soll die Lieferung der Schriftarten beschleunigen und die COR -Web -Vitals (Core Web Vitals) von Google erhöhen. Ich habe jedoch Warnungen danach gesehen (siehe Testing/Firefox und Firefox Developer Edition, unten).
< head >
< link
rel =" preload "
href =" roboto-light-webfont.woff2 "
as =" font "
type =" font/woff2 "
crossorigin =" anonymous "
/>
< link
rel =" preload "
href =" roboto-regular-webfont.woff2 "
as =" font "
type =" font/woff2 "
crossorigin =" anonymous "
/>
< link
rel =" preload "
href =" roboto-medium-webfont.woff2 "
as =" font "
type =" font/woff2 "
crossorigin =" anonymous "
/>
...
<!-- CSS file comes after preload -->
</ head > @font-face {
font-family : "Roboto" ;
font-weight : 300 ;
src : url ( "roboto-light-webfont.woff2" ) format ( "woff2" ) , url ( "roboto-light-webfont.woff" )
format ( "woff" );
}
/** Regular: 400 **/
@font-face {
font-family : "Roboto" ;
font-weight : 400 ;
src : url ( "roboto-regular-webfont.woff2" ) format ( "woff2" ) , url ( "roboto-regular-webfont.woff" )
format ( "woff" );
}
/** Medium: 500 **/
@font-face {
font-family : "Roboto" ;
font-weight : 500 ;
src : url ( "roboto-medium-webfont.woff2" ) format ( "woff2" ) , url ( "roboto-medium-webfont.woff" )
format ( "woff" );
}Der Großteil der Informationen stammte von selbsthosting Schriftarten (einschließlich Google-Schriftarten) // @font-face Tutorial (YouTube). Informationen zu Vorspannungen/CWVs und der Nicht-GDPR-Einhaltung stammen aus einem Kommentar-Thread auf derselben Seite.