update font size and weight for number of selected samples