2012-10-09 26 views
3

我試圖用應用程序腳本HtmlService做一個(!)頁面,但想要具有特定的Web字體。應用腳本HtmlService與Google Web字體一樣使用字體嗎?

我爲Web字體添加了CSS代碼,並將其與CSS集成。它不工作。

我懷疑谷歌卡哈(HtmlService已通過卡哈過濾器會)不能夠與網頁字體的工作。你知道我是否在做HtmlService的問題,或者是否有其他方法通過Caja的過濾來獲得Web字體?

<link href='http://fonts.googleapis.com/css?family=Fugaz+One' rel='stylesheet' type='text/css'> 

回答

2

The stylesheet you refer to使用@font-face加載一個字體。 Caja目前不支持@font-face,因爲它指的是外部內容(字體數據),其中Caja does not implement sanitization of and has not reviewed the risks of allowing through unchanged

如果您希望獲得@font-face支持,請在Caja's public issue tracker上提出請求。

(我是Caja團隊的開發人員。)

+0

Kevin,謝謝,那回答我的問題。雖然我想知道是否可以繞過@ font-face來知道其他方法,並且可以與Caja一起使用? – VanacK

+0

我在Caja問題跟蹤器上創建了[issue 1559](http://code.google.com/p/google-caja/issues/detail?id=1559)。任何對這個問題感興趣的人都應該明白它的意思。謝謝。還有人嘗試過[Cufòn](https://github.com/sorccu/cufon/wiki)與Caja? – VanacK

相關問題