WordPress local fonts | ProjectDMC.org Deutsch

[ad_1]

Hallo,

ich hätte eine frage zu der Verwendung von Schriftarten.

Ich versuche zurzeit auf meiner Seite wegen dem DSGVO die Schriftart Montserrat von Google lokal zu hosten.
Leider gestaltet sich das ganze deutlich schwerer als gedacht.
Ich habe mit folgenden Zeilen die Schriftart in WordPress eingefügt, nur sieht es ganz anders aus als mit der Originalschriftart obwohl ich genau dieselbe Schriftart nutze.

/* montserrat-regular – latin */
@font-face {
font-family: ‚Montserrat‘;
font-style: normal;
font-weight: 400;
src: url(‚../fonts/montserrat-v25-latin-regular.eot‘); /* IE9 Compat Modes */
src: local(“),
url(‚../fonts/montserrat-v25-latin-regular.eot?#iefix‘) format(‚embedded-opentype‘), /* IE6-IE8 */
url(‚../fonts/montserrat-v25-latin-regular.woff2‘) format(‚woff2‘), /* Super Modern Browsers */
url(‚../fonts/montserrat-v25-latin-regular.woff‘) format(‚woff‘), /* Modern Browsers */
url(‚../fonts/montserrat-v25-latin-regular.ttf‘) format(‚truetype‘), /* Safari, Android, iOS */
url(‚../fonts/montserrat-v25-latin-regular.svg#Montserrat‘) format(’svg‘); /* Legacy iOS */
}

Über die Customize Funktion in WordPress füge ich die zusätzliche CSS ein wie z.b.

.navbar_ico_block {
font-family: „Montserrat“;
}

Sobald ich jetzt das Plugin Disable and Remove Google Fonts aktiviere schaut die Schriftart ganz anders aus. Mir ich auch aufgefallen das bei dem Plugin für Firefox Font Finder angezeigt wird das die Schriftart „Font being Rendered“ in Times New Roman steht nach Aktivierung. In Chrome Developer Tools sehe ich aber das die Schriftart heruntergeladen wird.

Könnt ihr mir sagen, was ich falsch mache oder wo das Problem liegt?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer