“Niestandardowe czcionki CSS” Kod odpowiedzi

Jak połączyć czcionki CSS

@font-face {
  font-family: myFirstFont;
  src: url(sansation_light.woff);
}

div {
  font-family: myFirstFont;
}
/*Name the font-family and link the font file in the @font-face rule*/
OptimusRiemann

Niestandardowe czcionki CSS

@font-face {
    font-family: 'YourFontName'; /*a name to be used later*/
    src: url('http://domain.com/fonts/font.ttf'); /*URL to font*/
}
Past

Twarz czcionki CSS

@font-face {
  // Defining what the font will be called
  font-family: thisSpecialFont;
  // Linking to the font file
  src: url(linkToFontFile.woff);
}
body {
  font-family: thisSpecialFont;
}
Objectively Hilarious

@reguła czcionki w CSS

@font-face {
  font-family: "Open Sans";
  src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
       url("/fonts/OpenSans-Regular-webfont.woff") format("woff");
}
Upset Unicorn

Odpowiedzi podobne do “Niestandardowe czcionki CSS”

Pytania podobne do “Niestandardowe czcionki CSS”

Więcej pokrewnych odpowiedzi na “Niestandardowe czcionki CSS” w TypeScript

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu