Skip to content

Typographically correct underline for the web (with canvas).

License

Notifications You must be signed in to change notification settings

mspae/typographic-underline-canvas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typographic-underline-canvas

js-standard-style npm version

Typographically correct underline for the web.

This project was inspired by underline.js and smart-underline.

This library includes the NPM packages detect-zoom and font-baseline.

Note: Experimental code, use at own risk!

Note: Comments, PRs etc. are very welcome.

Usage

Package uses UMD pattern, to include it require('typographic-underline-canvas') or use window.TypographicUnderline.

Instantiate with selector or document element:

var myUnderlineInstance = new TypographicUnderline('.my-underline-selector')

For documentation on available options check out src/index.js (comments may be out of date)

Development

npm start for serving example html file on localhost:3000 and running watch tasks.

npm format to format code base.

About

Typographically correct underline for the web (with canvas).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published