Why SetTextFont can't change font size in TLegend?

I failed to enlarge font size in TLegend even SetTextFont has been set to 352. What I did as following shows:

 TLegend *leg=new TLegend(0.6,0.6,0.9,0.9);
                  leg->SetTextFont(352);
                  leg->Draw();

Wish anyone can help me…

1 Like

Got it.

It works with SetTextSize().

[url]TLegend header's font size
http://root.cern.ch/root/html/TAttText.html

Hi,

leg->SetTextSize(20); doesn’t seem to work. It is what you did? Thanks

Next time, please don’t re-use ancient topics, but open a new one.

How does leg->SetTextSize(20); not work? (And 20 is a only a reasonable number if the font is a pixel-based one; else try 0.03 or similar values.)