A calculation for the gray level of text

Some ideas and code for RoboFont relating to the weight of text. As any introduction to typography will tell you, font families come in different weights, ranging from thin to black and many steps in between. These weights are used to create hierarchies and structure within the text. A bold headline will catch the attention. A lighter weight for reading, etc. While the word weight has connotations of physics and empirical envidence, the typographic reality is a bit messy. This code attempts to get a grip on the weight.

Github link