Perform clumping and text shaping during box building