搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Canvas does not recognize the font Arial Narrow

  • 2 个回答
  • 4 人有此问题
  • 8 次查看
  • 最后回复者为 dleventhal

more options

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)

more options

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

See also:

more options

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