Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question