The usable pass-1 width on a key whose short side is s (≤ s / 24).
s
double penFor(double s) => math.max(0, math.min(outlineWidth, s / 24));