Tool for creating javascript font file, for writing text in canvas tag.
How-to:
Create javascript font file using this tool
Link it from html page <script src="fontfile.js"></script>
Write some string to canvas: call ctout_textout function. ctout_textout(ctx,x,y,str);
ctx - 2d canvas context
x, y - x and y
str - string to draw
Ex: ctout_textout(ctx,10,10,'Hello, Canvas!');
|
|