H
H
hero5642015-04-19 23:08:55
css
hero564, 2015-04-19 23:08:55

How to include custom font in HTML5 Canvas?

Hello! I draw on the canvas using JavaScript (ctx.fillText()), it became necessary to include a custom font. The font itself (*.ttf) is on the server. How to connect it so that it is possible to select it through ctx.font?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Vsk, 2015-04-19
@viktorvsk

stackoverflow.com/questions/2608022/how-can-i-use-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question