我将此作为Google应用脚本webapp中使用的样式,我们将样式表设置为html页面(包含样式标记)并将其包含在主html页面中。它使用默认字体而不是下面的代码段。
@font-face
{
font-family: myFirstFont;
src: url('https://dl.dropbox.com/s/g2lk505elj1aamj/MISTV___.TTF')
}
div.happy {
font-family: 'myFirstFont';
}
此致
米滕。
答案 0 :(得分:1)
HTMLService和Caja Sanitization不允许使用字体,上周我遇到了同样的问题。
https://groups.google.com/forum/#!topic/google-caja-discuss/WhqEZqfFn6g