Fixing text rendering when different formatting runs are present.