Odpowiednie pliki typu (woff, eot, svg, ttf) umieściłam już w docelowym folderze na serwerze i dodałam do poniższego kodu ich lokalizację.
Mój kod zaczyna się od linii nazwanej dość intuicyjnie: /* Nowa czcionka*/
Pytanie: co robię nie tak, że w miejscu docelowym np. dla jakiegoś nagłówka gdzie wpisuję: font-family: 'CaviarDreams'; nie pojawia się nic. Presta nie reaguje
Question
Ode
Witam,
Chciałabym dodać nową czcionkę do presty.
Odpowiednie pliki typu (woff, eot, svg, ttf) umieściłam już w docelowym folderze na serwerze i dodałam do poniższego kodu ich lokalizację.
Mój kod zaczyna się od linii nazwanej dość intuicyjnie: /* Nowa czcionka*/
Pytanie: co robię nie tak, że w miejscu docelowym np. dla jakiegoś nagłówka gdzie wpisuję: font-family: 'CaviarDreams'; nie pojawia się nic. Presta nie reaguje
@font-face { font-family: 'FontAwesome'; src: url("../font/fontawesome-webfont.eot?v=3.2.1"); src: url("../font/fontawesome-webfont.eot?#iefix&v=3.2.1") format("embedded-opentype"), url("../font/fontawesome-webfont.woff?v=3.2.1") format("woff"), url("../font/fontawesome-webfont.ttf?v=3.2.1") format("truetype"), url("../font/fontawesome-webfont.svg#fontawesomeregular?v=3.2.1") format("svg"); font-weight: normal; font-style: normal; } /* FONT AWESOME CORE * -------------------------- */ [class^="icon-"], [class*=" icon-"] { font-family: FontAwesome; font-weight: normal; font-style: normal; text-decoration: inherit; -webkit-font-smoothing: antialiased; *margin-right: .3em; } [class^="icon-"]:before, [class*=" icon-"]:before { text-decoration: inherit; display: inline-block; speak: none; } /* Nowa czcionka*/ @font-face { font-family: 'CaviarDreams'; src: url("../css/caviardreams/caviardreams-webfont.eot?v=3.2.1"); src: url("../css/caviardreams/caviardreams-webfont.eot?#iefix&v=3.2.1") format("embedded-opentype"), url("../css/caviardreams/caviardreams-webfont.woff?v=3.2.1") format("woff"), url("../css/caviardreams/caviardreams-webfont.ttf?v=3.2.1") format("truetype"), url("../css/caviardreams/caviardreams-webfont.svg#fontawesomeregular?v=3.2.1") format("svg"); font-weight: normal; font-style: normal; }Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now