Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 328 Bytes

README.md

File metadata and controls

8 lines (6 loc) · 328 Bytes

getFontCharWidth

To calculate the width of text inside SVG / Node JS. Or any scenario where you do not have a browser to render > get the width of a text object.

  1. Open the index.html file inside a browser.
  2. Copy the contents from the console into a node js server file
  3. Use the data to help calculate the font size/s