4
使用@ font-face爲網站使用特殊字體。字體呈現與DOM元素一致,但不適用於CANVAS。我究竟做錯了什麼?畫布 - 使用自定義字體
以下是演示:http://enriquemorenotent.com/demos/cube2/
使用@ font-face爲網站使用特殊字體。字體呈現與DOM元素一致,但不適用於CANVAS。我究竟做錯了什麼?畫布 - 使用自定義字體
以下是演示:http://enriquemorenotent.com/demos/cube2/
好了,有趣的事情。所有我不得不改變是:
context.font = "36px myFont bold";
爲
context.font = '36px "myFont" bold';