I can’t figure out how to set the font for text shown in a TGHtml.
My first guess was to use the standard HTML field “font”, say:
<font face=Arial size=5 color=550044>. This sets the size and color, but the font “face” has no effect. I also tried other values instead of “Arial”, such as Verdana, helvetica, 1, etc.
Maybe I’m just failing to guess the right (undocumented) format in which to specify the font?
Unfortunately I can’t find any example of selecting a font in a TGHtml (so far looked at user guide, tutorials, forums, various bug reports).
BTW: when I run the examples of bellenot.web.cern.ch/bellenot/Pu … _test.html in a TGHtml object, e.g., from python by
b=ROOT.TGHtmlBrowser("http://bellenot.web.cern.ch/bellenot/Public/html_test/html_test.html"), the examples showing different fonts (which actually use the “style” field), do not work.
BTW2: I’m running on Linux, ROOT v5.34.32, and while the font of the TGHtml is impressively ugly, in other places in the ROOT GUI has decent-looking fonts.