html - Local font not applied in web page in .net, How to import font -


enter image description herei have included font this, in html dont know vb.net . in normal css if include given below work in .net not so..

@font-face {   font-family: 'oswald';   font-style: normal;   font-weight: 300;   src: url('../fonts/oswald light.woff2'), url('../fonts/oswald-light.woff2') format('woff2');   unicode-range: u+0100-024f, u+1e00-1eff, u+20a0-20ab, u+20ad-20cf, u+2c60-2c7f, u+a720-a7ff; } /* latin */ @font-face {   font-family: 'oswald';   font-style: normal;   font-weight: 300;   src: url('../fonts/oswald light.woff2'), url('../fonts/oswald-light.woff2') format('woff2');   unicode-range: u+0000-00ff, u+0131, u+0152-0153, u+02c6, u+02da, u+02dc, u+2000-206f, u+2074, u+20ac, u+2212, u+2215, u+e0ff, u+effd, u+f000; } /* latin-ext */ @font-face {   font-family: 'oswald';   font-style: normal;   font-weight: 400;   src: url('../fonts/oswald regular.woff2'), url('../fonts/oswald-regular.woff2') format('woff2');   unicode-range: u+0100-024f, u+1e00-1eff, u+20a0-20ab, u+20ad-20cf, u+2c60-2c7f, u+a720-a7ff; } 

i have respective files in respective folders too..

check paths... using ../fonts take path back directory wherever use file. may need use ~/fonts use root of web app starting point.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -