Anafanafo
Efficiently compute text width using pre-generated charater-width tables
Install / Use
/learn @metabolize/AnafanafoREADME
anafanafo
This repo contains three related npm packages:
- char-width-table-builder, which builds character-width tables using Puppeteer.
- char-width-table-consumer, which efficiently computes text width using a character-width table.
- anafanafo, which computes text width for Verdana and Helvetica.
These have been built with Shields in mind.
(And because Verdana always makes me think of this.)
Usage
See anafanafo.
License
All rights to Verdana are owned by Microsoft Corp.
The remainder of this project is licensed under the MIT license.
