我正在尝试使用这种字体:http ://www.fontsquirrel.com/fontfacedemo/eb-garamond 所以我下载了类型工具包并将其放在正确的目录中。
CSS:
@font-face {
font-family: 'EBGaramondSC';
src: url('/EBGaramondSC-webfont.eot');
src: url('/EBGaramondSC-webfont.eot?#iefix') format('embedded-opentype'),
url('/EBGaramondSC-webfont.woff') format('woff'),
url('/EBGaramondSC-webfont.ttf') format('truetype'),
url('/EBGaramondSC-webfont.svg#EBGaramondRegular') format('svg');
font-weight: normal;
font-style: normal;
}
p.style2 {font: 18px/27px 'EBGaramondSC', Arial, sans-serif;}
HTML:
[p class="style2"]
Alfab Solutions, LLC is a custom security firm who focuses on rural secruity solutions. We offer rugged, secure camera systems which integrate into our SSL encrypted website. We provide 24/7 access to your security footage, so you can have peace of mind that your assets are safe.
[/p] Ignore brackets
Firebug 甚至不显示正确的字体图像。是什么赋予了?
我有一个奇怪的目录结构。索引是 .php,它是从模板文件生成的。所以我的字体应该在模板目录中,因为它们只影响那里的html。