Import source into CSS from .ttf file

0

Normally I imported the source Futura into my CSS code, but it does not work. Below is the CSS and folder structure.

@font-face {
    font-family: "FuturaLT-Bold";
    src: url("../fonts/FuturaLT-Bold.ttf");
    font-size: 1em;
}
@font-face {
    font-family: "FuturaLT-Book";
    src: url("../fonts/FuturaLT-Book.ttf");
    font-size: 1em;
} 

Using any text

#news h5 {
    color:#a4917e;
    font-family: 'FuturaLT-Bold';
    font-size: 23px;
    text-transform: uppercase;
    text-align: left;
}

The folders are organized like this:

htdocs/
  paddoksite/
    fonts/
      font-awesome/
      Open_Sans/
      FuturaLT-Bold.ttf
      FuturaLT-Book.ttf
    
asked by anonymous 22.07.2017 / 14:17

0 answers