Windows 10 reached EOS (end of support) on October 14, 2025. For more information, see this article.

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Canvas does not recognize the font Arial Narrow

  • 2 回覆
  • 4 有這個問題
  • 42 次檢視
  • 最近回覆由 dleventhal

更多選項

After setting the font property on the canvas context to "Arial Narrow", the context does not render text in the desired font. Other browsers (IE9, IE10, IE11, Chrome, Safari) all render Arial Narrow correctly. The css tricks people have mentioned on this site do not work with canvas. Here is a jsfiddle demonstrating the problem: http://jsfiddle.net/txymf/

After setting the font property on the canvas context to "Arial Narrow", the context does not render text in the desired font. Other browsers (IE9, IE10, IE11, Chrome, Safari) all render Arial Narrow correctly. The css tricks people have mentioned on this site do not work with canvas. Here is a jsfiddle demonstrating the problem: http://jsfiddle.net/txymf/

所有回覆 (2)

更多選項

Additional font properties like font-stretch:condensed may be required on Windows.

See also:

更多選項

Your reply refers to css properties. My question is about HTML5 Canvas. Does anyone know if this bug will be addressed soon?