This page is work-in-progress. You can reach me on twitter or mail to rezoner1337@gmail.com

fontHeight

Gets real pixel height of current font

.fontHeight();
var layer = cq(800, 300).appendTo(document.body);

layer.clear("#000");
layer.font("24px Arial");

layer
  .fillStyle("#fff")
  .fillText("the font is " + layer.font() + " but its real height equals " + layer.fontHeight() + "px", 32, 32);


Have any questions? Don't hesitate to ask:

Post issues on github, support my work on gratipay author rezoner