website: dynamic metrics update

This commit is contained in:
Rasmus Andersson 2019-02-02 21:01:00 -08:00
parent 118377c5ed
commit fa662b9e1d
8 changed files with 161 additions and 36 deletions

View file

@ -81,8 +81,8 @@ var HUDNotification = {
// the compensating tracking in EM.
//
function InterDynamicTracking(fontSize) {
var a = -0.02, b = 0.0755, c = -0.102;
// tracking = a + b * e ^ (c * fontSize)
var a = -0.017, b = 0.202, c = -0.175;
return a + b * Math.pow(Math.E, c * fontSize)
}