Ich möchte Gotham-Schriftart für meine Website verwenden, die keine Web-Safe-Schriftart ist, also habe ich die Schrift im Verzeichnis mit dem Namen 'Gotham': < /p>
Index.html < /p>
< /P> < /P> < />
gotham /gotham-light.otf < /p>
< /blockquote>
Hier ist, wie meine CSS-Datei in dem Teil aussieht, der die Schriftart festlegt: < /p>
p.gotham-thin{font-family:"Gotham-Light";}
@font-face {
font-family: Gotham-Light;
src: url('Gotham/Gotham-Light.otf') format('opentype');
}
< /code>
Hier ist, was Index.html tut: < /p>
ABOUT DIALOGIC
< /code>
Aber die Gotham -Schriftart funktioniert nur auf meinem Computer in Google Chrome, da ich die Schriftart lokal installiert habe. Wenn ich jedoch eine VM ausführe, bei der die Schrift nicht installiert ist, wird es nur Tahoma -Schriftart verwendet.
CSS @font-face arbeitet nicht mit Gotham-Schriftart ⇐ HTML
-
- Similar Topics
- Replies
- Views
- Last post
Mobile version