Get default font from LookAndFeel


#1

Ok, I must be overlooking something obvious, but LookAndFeel has setDefaultSansSerifTypefaceName. How how to I get the default font?

If I go Font f(16) it uses the default LookAndFeel.

How do I do something like Font f(16, lf) that uses a given LookAndFeel?


#2

I know what you mean. I wanted to go back to it when displaying the user’s name because it includes all the accented characters which my main font did not. My work around was to not change the default font but change everything else’s component font individually, if that makes any sense.