First principles of typography