I am currently working on embedding a new font in my page (currently offline). I converted the font to all types with Font Squirrel and added them to the fontspring code. Now I would like to order my folders into subfolders, so I created a root folder (HTML file only), a CSS folder, and a font folder. Font-Face is embedded in CSS and tries to get fonts from the font folder, but it doesn't work. It just works when I put CSS, HTML and all fonts in the root folder. What for? I have already used the relative path method (../font/thefontiwanttouse.ttf). There is no way to attach to the Fonts and CSS folder and use Fontface? Iโve already searched the web, but I havenโt found anything.
CSS Code:
body, button, input, select, textarea { font-family: regular, sans-serif; color: #222; }
Fontfamily Code
@font-face { font-family: 'regular'; src: url('../font/pfdindisplaypro-reg-webfont.eot?#iefix') format('embedded-opentype'), url('../font/pfdindisplaypro-reg-webfont.woff') format('woff'), url('../font/pfdindisplaypro-reg-webfont.ttf') format('truetype'), url('../font/pfdindisplaypro-reg-webfont.svg#svgFontName') format('svg');}
Hi Terba.
source share