2
@ font-face src:local-如果用户已经拥有本地字体,如何使用?
什么是正确的使用方式,@font-face以便浏览器不会在用户已经拥有字体的情况下下载它? 我正在使用@ font-face定义DejaVu,它已经安装在我的系统(Linux)上。Firefox不会下载该字体,但是Chromium每次都会下载它! 我的CSS代码基于字体松鼠,该问题如下所示: @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'), …