html - Font-Family not being imported -


i'm trying use font called "patua one" changes not showing when add attribute inside css.

here css code:

.p1{ font-family: "patua one"; font-size: 70px; color: #1b423e; } 

this import looks like:

@font-face { font-family: 'patua_oneregular'; src: url('patuaone-regular-webfont.eot'); src: url('patuaone-regular-webfont.eot?#iefix') format('embedded-opentype'),      url('patuaone-regular-webfont.woff') format('woff'),      url('patuaone-regular-webfont.ttf') format('truetype'),      url('patuaone-regular-webfont.svg#patua_oneregular') format('svg'); font-weight: normal; font-style: normal;  } 

if wondering, src: url('patuaone-regular-webfont') located in webroot , includes of files.

this root directory here root directory:

then inside webfontkit these files:

enter image description here

inside style.css @import css posted above.

your font-family should have consistent value when importing , using.

also, have not given correct path of font files.

it should be:

@font-face {     font-family: 'patua_oneregular';     src: url('../webfontkit-patuaone/patuaone-regular-webfont.eot');     src: url('../webfontkit-patuaone/patuaone-regular-webfont.eot?#iefix') format('embedded-opentype'),          url('../webfontkit-patuaone/patuaone-regular-webfont.woff') format('woff'),          url('../webfontkit-patuaone/patuaone-regular-webfont.ttf') format('truetype'),          url('../webfontkit-patuaone/patuaone-regular-webfont.svg#patua_oneregular') format('svg'); 

and

.p1{     font-family: 'patua_oneregular'; } 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -