Skip to content

Extract detailed font metrics for fonts served by the Google Fonts CDN

Notifications You must be signed in to change notification settings

wabain/google-font-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

google-font-info

This is a script to extract typographic metrics from fonts served by the Google Fonts project.

Why?

This information can be leveraged to work around shortcomings of browser's font handling. I was motivated to write this after hitting inconsistencies in how browsers handle vertical alignment in canvases.

Usage

Dependencies:

  • Go 1.11+
  • libfreetype2
  • The Protocol Buffer compiler, with Go support
# Build executable google-font-info
make

# The executable clones the Google Fonts git repository and extracts font
# metrics for each font. Currently, these metrics are written to stdout.
./google-font-info

About

Extract detailed font metrics for fonts served by the Google Fonts CDN

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published