Decompose font-smoothing into two functions.