Skip to content

easwee/precise-text-size

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

precise-text-size

Returns precise text width and height - from first non-transparent pixel to the last-one, ignoring any kerning space before/after word, which is usually accounted into a getTextWidth() calculation.

API

getPreciseTextSize(HTMLElement)

Get precise text width and height from first to last non-empty pixel from a styled HTMLElement input.

License

MIT

About

Measure text size from first to last full pixel.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published