Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 482 Bytes

README.md

File metadata and controls

8 lines (5 loc) · 482 Bytes

Polyfill for measureText() function

This polyfill is based on two projects from @Pomax and @motiz88 but this one is designed to be compatible with the standard.

TODO

  • Take textAlign property into account in calculations (DONE)
  • Support for fontBoundingBoxAscent and fontBoundingBoxDescent properties