anafanafo

Compute text width in Verdana

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
anafanafo
11332.0.04 years ago6 years agoMinified + gzip package size for anafanafo in KB

Readme

anafanafo
versionnpm licensenpm buildbuild bundle sizebundlephobia code styleprettier lernalerna
Efficiently compute text width in Verdana and Helvetica using char-width-table-consumer and lookup tables.
Built with Shields in mind.
(And because Verdana always makes me think of thisthe name game.)

Usage

const anafanafo = require('anafanafo')

// Supports '11px Verdana', '10px Verdana', 'bold 10px Verdana', and 'bold 11px Helvetica'.
const width = anafanafo('Shirley Shirley', { font: '11px Verdana' })

License

All rights to Verdana are owned by Microsoft Corp.
The remainder of this project is licensed under the MIT license.