devo incorporare un font per un sito e ho seguito i seguenti passaggi:
1. ho generato i vari file con transfonter
2. ho creato la directory dir:sito/fonts
3. ho copiato lì tutti i file di transfonter
4. ho messo nel css
sono su debian, ma né con Firefox né con Chrome riesco a vedere il sito col font prescelto,codice:/*carattere incorporato*/ @font-face { font-family: 'Century Gothic'; src: url('fonts/CenturyGothic.eot'); src: url('fonts/CenturyGothic.eot?#iefix') format('embedded-opentype'), url('fonts/CenturyGothic.woff') format('woff'), url('fonts/CenturyGothic.woff2') format('woff2'), url('fonts/CenturyGothic.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Century Gothic'; src: url('fonts/CenturyGothic-Italic.eot'); src: url('fonts/CenturyGothic-Italic.eot?#iefix') format('embedded-opentype'), url('fonts/CenturyGothic-Italic.woff') format('woff'), url('fonts/CenturyGothic-Italic.woff2') format('woff2'), url('fonts/CenturyGothic-Italic.ttf') format('truetype'); font-weight: normal; font-style: italic; } @font-face { font-family: 'Century Gothic'; src: url('fonts/CenturyGothic-Bold.eot'); src: url('fonts/CenturyGothic-Bold.eot?#iefix') format('embedded-opentype'), url('fonts/CenturyGothic-Bold.woff') format('woff'), url('fonts/CenturyGothic-Bold.woff2') format('woff2'), url('fonts/CenturyGothic-Bold.ttf') format('truetype'); font-weight: bold; font-style: normal; } @font-face { font-family: 'Century Gothic'; src: url('fonts/CenturyGothic-BoldItalic.eot'); src: url('fonts/CenturyGothic-BoldItalic.eot?#iefix') format('embedded-opentype'), url('fonts/CenturyGothic-BoldItalic.woff') format('woff'), url('fonts/CenturyGothic-BoldItalic.woff2') format('woff2'), url('fonts/CenturyGothic-BoldItalic.ttf') format('truetype'); font-weight: bold; font-style: italic; } /*stili per il layout fluido*/ html{margin:0; padding:0} body{margin:0; padding:0; font-family:"Century Gothic", sans-serif; font-size:110%; color:#424242}
ma solo con un sans serif di default
che cosa ho tralasciato?
grazie
s

Rispondi quotando