Answer the question
In order to leave comments, you need to log in
Good afternoon, a question for @font-face?
There is code
@font-face {
font-family: 'lobster';
src: url('fonts/lobster-regular-webfont.eot');
src: url('fonts/lobster-regular-webfont.eot?#iefix') format('embedded-opentype'),
url('fonts/lobster-regular-webfont.woff2') format('woff2'),
url ('fonts/lobster-regular-webfont.woff') format('woff'),
url('fonts/lobster-regular-webfont.ttf') format('truetype'),
url('fonts/lobster-regular- webfont.svg#lobsterregular') format('svg');
}
@font-face {
font-family: 'marck_script';
src: url('fonts/marckscript-regular-webfont.eot');
src: url('fonts/marckscript-regular-webfont.eot?#iefix') format('embedded-opentype'),
url('fonts/marckscript-regular-webfont.woff2') format('woff2'),
url ('fonts/marckscript-regular-webfont.woff') format('woff'),
url('fonts/marckscript-regular-webfont.ttf') format('truetype'),
url('fonts/marckscript-regular- webfont.svg#marck_scriptregular') format('svg');
}
@font-face {
font-family: 'pattaya';
src: url('fonts/pattaya-regular-webfont.eot');
src: url('fonts/pattaya-regular-webfont.eot?#iefix') format('embedded-opentype'),
url('
url('fonts/pattaya-regular-webfont.woff') format('woff'),
url('fonts/pattaya-regular-webfont.ttf') format('truetype'),
url('fonts/pattaya-regular -webfont.svg#pattayaregular') format('svg');
}
But for some reason it doesn't work in all browsers. Opera Chrome and FF are fine, but even IE m Safari is not perceived in any way, I tried different variations. codes. stuck in a dead end.
Font downloaded from google fonts cyrillic attribute enabled. converted here https://www.fontsquirrel.com
Came to a complete dead end. Help
Lvizhok wordpress site
Answer the question
In order to leave comments, you need to log in
@font-face {
font-family: MyFont; src: url('myfont.ttf');
}
for IE try this pattern
Understood a banal inattention.
Tiny MCE inserted the code like this
......
and in the css the name is font-family: 'lobster'; wrote. apparently because of this.
Corrected and everywhere everything began to be displayed normally to see some browsers critically look at Capital and non-capital letters
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question