使用<代码>@font-face的正确方式 如果用户已经下载,浏览器不会下载字体吗?
I am using @font-face to define DejaVu, which is already installed on my system (linux). Firefox is not downloading the font, but Chromium is downloading it every time!
@font-face {
font-family: DejaVu Serif ;
src: url( DejaVuSerif-webfont.eot );
src: local( DejaVu Serif ), url( DejaVuSerif-webfont.woff ) format( woff ), url( DejaVuSerif-webfont.ttf ) format( truetype ), url( DejaVuSerif-webfont.svg#webfontCFu7RF0I ) format( svg );
font-weight: normal;
font-style: normal;
}
/* ... @font-face definitions for italic and bold omitted ... */
@font-face {
font-family: DejaVu Serif ;
src: url( DejaVuSerif-BoldItalic-webfont.eot );
src: local( DejaVu Serif Bold Italic ), url( DejaVuSerif-BoldItalic-webfont.woff ) format( woff ), url( DejaVuSerif-BoldItalic-webfont.ttf ) format( truetype ), url( DejaVuSerif-BoldItalic-webfont.svg#webfontQAewh7pf ) format( svg );
font-weight: bold;
font-style: italic;
}