Deutsch/German
Dieses Plugin lädt extern geladene Dateien oder Schriften in das lokale Dateisystem herunter und stellt sie von der lokalen Domäne aus zur Verfügung.
Zur Zeit werden nur Google-Schriften verarbeitet. Weitere Dienste wie CDNs oder Fontfabriken, auch externe Skripte oder Bilder, sind für die Zukunft geplant.
Zwei Möglichkeiten der Einbindung werden unterstützt:
<link href="https://fonts.googleapis.com/css2?family=PT+Sans+Caption:wght@400;700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="(lazy-)stylesheet" />
@import "https://fonts.googleapis.com/css2?family=PT+Sans+Caption:wght@400;700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap";
@import url("https://fonts.googleapis.com/css2?family=PT+Sans+Caption:wght@400;700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap");
@import url(https://fonts.googleapis.com/css2?family=PT+Sans+Caption:wght@400;700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap);
Methode 1 wird im Seitenkopf a) erkannt, Methode 2 wird sowohl in den eingebundenen CSS-Dateien der ersten Ebene im Seitenkopf als auch in den Style-Tags im Seitenkopf und im Seiteninhalt b) erkannt.
Google bietet auch zwei Varianten an, die mir derzeit bekannt sind, um die Schriften abzurufen:
https://fonts.googleapis.com/css?family=PT+Sans+Caption:400,700|PT+Sans:400,400i,700,700i
https://fonts.googleapis.com/css2?family=PT+Sans+Caption:wght@400;700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700
Beide werden gefunden und ersetzt.
- Es empfiehlt sich das Plugin als letztes in der Reihenfolge anzuordnen.
- Nach Änderungen an den CSS-Dateien, sollte der Index zurückgesetzt werden.
___
Legende:
a) Seitenkopf ist der HTML-Bereich zwischen <head>
und </head>
b) Seiteninhalt ist der HTML-Bereich zwischen <body>
und </body>
Englisch/English
This Plugin downloads external loaded files or fonts to the local file System and serves them from the local Domain.
Currently only Google fonts are handled. Other services like CDNs or font factories, also external scripts or images, are planed for the future.
Two ways of embedding are supported:
<link href="https://fonts.googleapis.com/css2?family=PT+Sans+Caption:wght@400;700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="(lazy-)stylesheet" />
@import "https://fonts.googleapis.com/css2?family=PT+Sans+Caption:wght@400;700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap";
@import url("https://fonts.googleapis.com/css2?family=PT+Sans+Caption:wght@400;700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap");
@import url(https://fonts.googleapis.com/css2?family=PT+Sans+Caption:wght@400;700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap);
Method 1 is recognized in the page header, method 2 is recognized both within the included CSS files of the first level in the page header and in the style tags in the page header and in the page body.
Google also offers two variants, which are currently known to me, to retrieve the fonts:
https://fonts.googleapis.com/css?family=PT+Sans+Caption:400,700|PT+Sans:400,400i,700,700i
https://fonts.googleapis.com/css2?family=PT+Sans+Caption:wght@400;700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700
Both are found and replaced.
- It is recommended to place the plugin as last in the order.
- After making changes to the CSS files, the index should be reset.
French/French
Ce plugin télécharge des fichiers ou des polices externes chargés dans le système de fichiers local et les sert à partir du domaine local.
Actuellement, seules les polices Google sont gérées. D'autres services tels que les CDN ou les usines de polices, ainsi que des scripts ou des images externes, sont prévus pour l'avenir.
D'autres services tels que les CDN ou les usines de polices, ainsi que des scripts ou des images externes, sont prévus pour l'avenir.
Deux méthodes d'intégration sont prises en charge :
<link href="https://fonts.googleapis.com/css2?family=PT+Sans+Caption:wght@400;700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="(lazy-)stylesheet" />
@import "https://fonts.googleapis.com/css2?family=PT+Sans+Caption:wght@400;700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap";
@import url("https://fonts.googleapis.com/css2?family=PT+Sans+Caption:wght@400;700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap");
@import url(https://fonts.googleapis.com/css2?family=PT+Sans+Caption:wght@400;700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap);
La méthode 1 est reconnue dans l'en-tête de la page, la méthode 2 est reconnue à la fois dans les fichiers CSS inclus de premier niveau dans l'en-tête de la page et dans les balises de style dans l'en-tête de la page et dans le corps de la page.
Google propose également deux variantes, qui sont actuellement connues, pour récupérer les polices :
https://fonts.googleapis.com/css?family=PT+Sans+Caption:400,700|PT+Sans:400,400i,700,700i
https://fonts.googleapis.com/css2?family=PT+Sans+Caption:wght@400;700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700
Les deux sont trouvés et remplacés.
- Il est fortement recommandé de placer le plugin en dernier dans l'ordre.
- Après avoir apporté des modifications aux fichiers CSS, il est recommandé de réinitialiser l'index.