Font Rendering from First Principles