相关疑难解决方法(0)

我应该为我的网站使用什么字体格式

我想为我的网站使用一种字体,我得到了整体研究并发现了各种字体格式,现在我想知道什么是标准格式?或者标准格式是什么?

.TTF (True Type Font)
.EOT (Embedded OpenType)
.OTF (open type font)
.SVG (Scalable Vector Graphics)
.WOFF (Web Open Font Format)
Run Code Online (Sandbox Code Playgroud)

到目前为止,我已经使用了所有这些格式,如下所示:

@font-face {
    font-family: 'Font';
    src: url('Font.eot'); /* IE9 Compat Modes */
    src: url('Font.eot?#') format('eot'), /* IE6–8 */
         url('Font.ttf') format('truetype'), /* Saf3—5, Chrome4+, FF3.5, Opera 10+ */
         url('Font.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
         url('Font.otf') format('opentype'),
         url('Font.svg') format('svg');
}
Run Code Online (Sandbox Code Playgroud)

但在这种情况下,网站太重了(所有格式的大小几乎都是1MB),那么我应该怎么做才能更加优化呢?

css fonts

19
推荐指数
1
解决办法
2474
查看次数

标签 统计

css ×1

fonts ×1