Join us and the lead editor of IRL, Mozilla's multi-award-winning podcast, for a behind-the-scenes look at the pod and to contribute your ideas for the next season, themed: "AI and ME." Mark your calendar and join our Community Call on Wednesday, Aug 7, 17:00–17:45 UTC. See you there!

Avatar for Username

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

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?