FormidableLabs/measure-text

Name: measure-text

Owner: Formidable

Description: An efficient text measurement function for the browser.

Created: 2016-02-12 01:25:17.0

Updated: 2018-01-04 20:26:11.0

Pushed: 2016-10-04 19:30:43.0

Homepage: null

Size: 92

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

measure-text

An efficient text measurement function for the browser.

API
t measurement = measureText({
xt: "The quick brown fox jumps over the lazy dog",
ntFamily: "Georgia",
ntSize: "2em",
neHeight: 1.3,
ntWeight: 700,
ntStyle: "italic"

measureText accepts the following parameter object:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.