Font size of TBrowser

I found the following way to change the fonts on the TBrowser. However this no longer works with the root version 3.05/07 5 September 2003.
Please can some one tell me how to rectify this?
Thanks,
Sinjini
ssinjini@fnal.gov

in $ROOTSYS/tutorials/.rootrc you will find a list of all resources
supported by all ROOT programs. To change the GUI related fonts change
the font size in the lines:

GUI specific settings

Gui.NormalFont: -adobe-helvetica-medium-r---12------iso8859-1
Gui.BoldFont: -adobe-helvetica-bold-r-
--12------iso8859-1
Gui.SmallFont: -adobe-helvetica-medium-r---10------iso8859-1
Gui.ProportionalFont: -adobe-courier-medium-r-
--12------iso8859-1

to your liking (e.g. 12 to 14, 10 to 12).

Hi ssinjini,
this is not a problem of TBrowser.
Settings in $ROOTSYS/tutorials/.rootrc will
change fonts in any GUI object.

I can recommend to use 2 spaces between “:” and "-"
like
Gui.NormalFont: -adobe-helvetica-medium-r---12-----*-iso8859-1

Hope this helps. Regards. Valeriy

Hi,
my previous message was “corrected” by “forum mail agent”.
Seems, all messages posted in forum are edited with
removing extra space symbols.

Gui.NormalFont:[space][space]-adobe-helvetica-medium-r---12-----*-iso8859-1

where [space] is “space symbol”

Regards. Valeriy

Hi there,
Can you tell me how to activate new font settings when you change the bit below in the rootrc file?

GUI specific settings

Gui.NormalFont: -adobe-helvetica-medium-r—12------iso8859-1
Gui.BoldFont: -adobe-helvetica-bold-r—12------iso8859-1
Gui.SmallFont: -adobe-helvetica-medium-r—10------iso8859-1
Gui.ProportionalFont: -adobe-courier-medium-r—12------iso8859-1

Thanks.

Hi,

What do you mean? Changing those values should be sufficient… For example:

Gui.NormalFont: -adobe-helvetica-medium-r—16------iso8859-1
Gui.BoldFont: -adobe-helvetica-bold-r—16------iso8859-1
Gui.SmallFont: -adobe-helvetica-medium-r—14------iso8859-1
Gui.ProportionalFont: -adobe-courier-medium-r—16------iso8859-1

Cheers, Bertrand.

Hi,
Apparently, it didn’t work. I still have the same TBrowser with same fonts in the menu. You can check the attachment.

Cheers.

Which rootrc file did you change? if you have a $(HOME)/.rootrc, then you have to change this one. Otherwise you can change the $(ROOTSYS)/etc/system.rootrc

ı changed the one in my ROOT installation folder. It ends with …etc/system.rootrc .

Please make sure you don’t have a .rootrc file in your $(HOME) directory

See the result with the following settings

Gui.DefaultFont:            -adobe-segoe UI-medium-r-*-*-16-*-*-*-*-*-iso8859-1
Gui.MenuFont:               -adobe-segoe UI-medium-r-*-*-16-*-*-*-*-*-iso8859-1
Gui.MenuHiFont:             -adobe-segoe UI-bold-r-*-*-16-*-*-*-*-*-iso8859-1
Gui.DocFixedFont:           -adobe-courier new-medium-r-*-*-16-*-*-*-*-*-iso8859-1
Gui.DocPropFont:            -adobe-helvetica-medium-r-*-*-16-*-*-*-*-*-iso8859-1
Gui.IconFont:               -adobe-segoe UI-medium-r-*-*-14-*-*-*-*-*-iso8859-1
Gui.StatusFont:             -adobe-segoe UI-medium-r-*-*-16-*-*-*-*-*-iso8859-1

Yours looks readable. ı am trying to find that file.

All you did was to update the font size and save the file, then go to open the TBrowser again, right? By the way my rootrc file in my installation folder. Does anything look wrong in some part of the attachment of rootrc file?
question.txt (10.3 KB)

As I said, the .rootrc file (don’t forget the dot) must be in your $(HOME) directory

ı believe like all the other things, what you are saying also is so simple to do it. However, either there is not .rootrc file in my home directory or ı don’t know how to access for some reason. Thanks for the help. ıt’s my bad.

One last thing. Have you installed your root in your home directory without creating any new file for it? Can you type what you write on your terminal to access to your rootrc file, so ı can see if ı am doing any silly mistake? If you create your root in a different folder in your home directory, did you copy that system.rootrc or just .rootrc file in your home directory?

Thanks.

Just copy $(ROOTSYS)/etc/system.rootrc to $(HOME)/.rootrc and then edit $(HOME)/.rootrc with your favorite editor.

Do you have a HiDPI screen? Maybe you need to change Xft.dpi in ~/.Xresources.

Nope. Thanks for your time.

ı have a display with 3840×2160 pixels.

Then try adding the line

Xft.dpi: 192

into your ~/.Xresources file, then run xrdb -load ~/.Xresources and restart ROOT.