Setting font for tooltips?

I overrode my L&F’s drawTooltip() function, to set the font to Arial, 15pt, normal, and then calling the base class to finish the drawing, but the base class calls a static function LookAndFeelHelpers::layoutTooltipText(), which explicitly set the font size to 13pt. bold. Since that is not a virtual member of the L&F class, I don’t see an easy way to set the font size and type style. Anyone know how this can be done (easily)?

Yeah, I had the same problem.
So what I ended up doing is to not call the base class. Instead I copied the base classes drawTooltip() function and modified it to my needs.
But curious to see, if someone found a better solution.

2 Likes