title: Use Javascript to get Maximum font size in canvas
body: <p>I am drawing a canvas that needs to be on full available screen (100% width and height). I set the width and height of canvas using javascript like this</p>
  
  <pre><code>  var w = window.innerWidth;
    var h = window.innerHeight;
    var canvas = document.getElementById("myCanvas");
    canvas.width  = w;
    canvas.height = h;
  </code></pre>
  
  <p>After setting the canvas, I need to draw some text in it which needs to get the maximum available font size. Please help me finding the way how can I display text with maximum font size. The text may contain a single character (both upper and small case) or a string and can also contain numbers. I need to do it with javascript not jquery.</p>
  
  <p>Thank you for your help.</p>