我想在我的网站上使用Google的Roboto字体,正在遵循这个教程:
http://www.maketecheasier.com/use-google-roboto-font-everywhere/2012/03/15
我已经下载了文件,它的文件夹结构如下:
现在我有三个问题:
- 我在
media/css/main.css
网址中有CSS。那么我需要将该文件夹放在哪里? - 我需要从所有子文件夹中提取所有eot、svg等,然后放入
fonts
文件夹中吗? - 我需要创建css文件fonts.css并将其包含在我的基本模板文件中吗?
他使用的示例是这样的
@font-face {
font-family: 'Roboto';
src: url('Roboto-ThinItalic-webfont.eot');
src: url('Roboto-ThinItalic-webfont.eot?#iefix') format('embedded-opentype'),
url('Roboto-ThinItalic-webfont.woff') format('woff'),
url('Roboto-ThinItalic-webfont.ttf') format('truetype'),
url('Roboto-ThinItalic-webfont.svg#RobotoThinItalic') format('svg'); (under the Apache Software License).
font-weight: 200;
font-style: italic;
}
如果我想要一个目录结构类似于:
/media/fonts/roboto
那么我的URL应该长什么样?