Skip to content

JavaScript helpers to improve the state of typography on the web

Notifications You must be signed in to change notification settings

ELLIOTTCABLE/typography.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typography.js

This is a small project that simply brings together several useful JavaScript functions:

  • Typography.baseline(element) will calculate the baseline ratio of a given element. This is mostly used internally, but it’s useful enough that I made it a publicly-available function.
  • Typography.underline(element, style) will draw a “typographically proper” underline directly under a given element (e.g. an underline with “holes” in it for the typeface’s descenders).

Requirements

Currently, Typography.js relies on MooTools (built using mootools-1.2.1-core, though other versions may work). I’m not very good at JavaScript, at all — the plan is to eventually be framework‐agnostic, but I’m certainly not there yet.

Plans

I’m a huge typophile, and I’m always interested in anything related to anything that might improve the state of typography on the web. Please feel free to contact me if you see a problem that you’d like me to consider attempting to fix and include in this library, that relates to typography in any way. That being said, I’ve got several plans for this library, which may or may not see implementation:

About

JavaScript helpers to improve the state of typography on the web

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published