website: dynamic metrics

This commit is contained in:
Rasmus Andersson 2019-02-07 18:18:10 -08:00
parent af51a3e178
commit ec90e93e82
4 changed files with 46 additions and 24 deletions

View file

@ -81,7 +81,7 @@ var HUDNotification = {
// the compensating tracking in EM.
//
function InterDynamicTracking(fontSize) {
var a = -0.038, b = 0.161, c = -0.12;
var a = -0.0223, b = 0.185, c = -0.1745;
// tracking = a + b * e ^ (c * fontSize)
return a + b * Math.pow(Math.E, c * fontSize)
}