/measure-text-polyfill

Polyfill for measureText function

Primary LanguageJavaScriptMIT LicenseMIT

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