【发布时间】:2016-01-31 22:17:34
【问题描述】:
我想在 font-face 中添加一个base64 encoded OpenType 字体作为数据 URI。
到目前为止我有这个:
@font-face {
font-family: 'test';
src: url(data:font/otf;base64,
// Base64 string here ...
) format('opentype');
}
但我认为它没有将字体正确地包含在我的风格中。
对此的任何帮助将不胜感激。
【问题讨论】:
-
请使用
's 包装这些值。你用的是什么浏览器? -
我试过了,还有谷歌浏览器
-
哦,是的,是
font/opentype不是otf。 -
还是不行:(