Skip to content

pouya-eghbali/text-pixel-width

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

text-pixel-width

Get pixel width of a text

Usage

const { getWidth } = require("text-pixel-width")
const pixels = getWidth("Hello world!", "Arial", 16)

Adding fonts

Run node generate.js then make a pull request.

About

Get width of a text, in pixels

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published