@ font-face style google-apps-script

时间:2013-08-11 16:43:18

标签: css3 google-apps-script

我将此作为Google应用脚本webapp中使用的样式,我们将样式表设置为html页面(包含样式标记)并将其包含在主html页面中。它使用默认字体而不是下面的代码段。

@font-face
{
font-family: myFirstFont;
src: url('https://dl.dropbox.com/s/g2lk505elj1aamj/MISTV___.TTF')
}

div.happy {
  font-family: 'myFirstFont';
}

此致

米滕。

1 个答案:

答案 0 :(得分:1)

HTMLService和Caja Sanitization不允许使用字体,上周我遇到了同样的问题。

https://groups.google.com/forum/#!topic/google-caja-discuss/WhqEZqfFn6g