Skip to content

jeegurda/TexMetrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Live: https://jeegurda.github.io/TexMetrix/


Measures font size as it's rendered in current browser using TextMetrics interface inside a canvas.

The size on the left of each line is (W px/F px) where W is the exact width of the inline element with the specifed text and F is its height. Note that changing line height does not affect inline element height. Also note that specified width is not the same as font actual bounding box width.


Build

$ npm i
$ npm run build
$ npx serve build/  # 'serve' not included, just as an example

Serve'n'dev

$ npm i
$ npm run serve  # runs at http://localhost:8000

About

Measure this, measure that

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published