我希望将一个使用base64编码的OpenType字体作为数据URI添加到font-face中。
目前我已经做到了这一点:
但我认为它没有正确地将字体包含在我的样式中。如果能提供帮助,我将不胜感激。
目前我已经做到了这一点:
@font-face {
font-family: 'test';
src: url(data:font/otf;base64,
// Base64 string here ...
) format('opentype');
}
但我认为它没有正确地将字体包含在我的样式中。如果能提供帮助,我将不胜感激。
'
将值括起来。你在使用哪个浏览器? - Praveen Kumar Purushothamanfont/opentype
而不是otf
。 - Praveen Kumar Purushothaman