TLegend* leg = new TLegend(x1,y1,x2,y2); leg->SetTextSize(0.03);
TLegend* leg = new TLegend(x1,y1,x2,y2); leg->SetTextSize(TStyle::GetTextSize()*0.8);In this example, the text size of the legend is set to 80% of the current text size of the TStyle object. These examples are using CPP programming language, and the package library is ROOT data analysis framework.