- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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);
- Related Articles
- HTML5 Canvas Text Stroke for Large Font Size
- HTML5 Canvas Font Size Based on Canvas Size
- How to draw a rectangle on HTML5 Canvas?
- How to draw a quadratic curve on HTML5 Canvas?
- How to draw an SVG file on an HTML5 canvas?
- How to draw lines using HTML5 Canvas?
- Fractional font sizes for HTML5 Canvas?
- How to draw an oval in HTML5 canvas?
- How to draw a Bezier Curve with HTML5 Canvas?
- How to draw a star by using canvas HTML5?
- How to draw grid using HTML5 and canvas or SVG?
- Draw Bezier Curve with HTML5 Canvas
- Draw a shadow with HTML5 Canvas
- Draw a circle filled with random color squares on HTML5 canvas
- How to detect point on canvas after canvas rotation in HTML5

Advertisements