Patrick, this might help you: http://root.cern.ch/cgi-bin/print_hit_bold.pl/root/roottalk/roottalk98/1330.html?font#first_hit where you can do: gClient->GetFontByName(""-adobe-helvetica-medium-r-*-*-14"); //default is 12 The ideal way to change the font style/size is to use: TGTextEntry::SetFont("-adobe-helvetica-medium-r-*-*-14"); but that has a problem that it changes the font for all TGTextEntries and all other GUI object using the same graphics context. This will be fixed in the new release, so then you should move back to using SetFont(). Cheers, Fons. Patrick Dupre LCMI wrote: > > > Hello, > > > > How can I easly change the size of the font used by a TGTextEntry ? > > > > Thank. > Who could help me ? > -- > --- > ============================================================================== > Patrick DUPRE | | Tel: (33 4) 76-88-78-51 > CNRS/LCMI (GHMFL) | | Fax: (33 4) 76-85-56-10 > 25 Rue des Martyrs, BP 166 | | http://eschyle.polycnrs-gre.fr > F-38042 GRENOBLE Cedex 09 | | email: pdupre@polycnrs-gre.fr > ============================================================================== -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:24 MET