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

textBoundaries

Get boundaries of a wrapped (or not) text using current font.

cq().textBoundaries(text, maxWidth = 0);

maxWidth provide a value if the text shall be wrapped

return { 
  height:     Number, /* height of a whole text */
  width:      Number, /* width of a whole text */
  lines:      Number, /* number of lines */
  fontHeight: Number  /* real height of a font */
}


Have any questions? Don't hesitate to ask:

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