Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
How to draw large font on HTML5 Canvas?
To draw large font properly in HTML5 Canvas, you can try to run the following code:
var myCanvas = document.getElementById("myCanvas");
var context = c.getContext("2d");
context.font = '180pt Georgia';
context.strokeStyle = "#FF0000";
context.fillStyle = "#FFFFFF
";
context.lineWidth = 34;
context.fillText("Demo!",0,200);
context.strokeText("Demo!",0,200); Advertisements
