Default MONOSPACE font for openjdk

525 Views Asked by At

I have a Java application (Openbravo POS) and it is running on ubuntu 16.04 .

Im using openjdk. The question is:

Is there any way to change the font choosen by this piece of code:

private static Font BASEFONT = new Font("Monospaced", Font.PLAIN, 7).deriveFont(AffineTransform.getScaleInstance(1.0, 1.40));

I've tried changing default monospace font via Unity Tweak Tool, but it does not help.

P.S. I have the full source to recompile app with other font specified, but its kinda funny to do it...

1

There are 1 best solutions below

0
omajid On

You can use font configuration for this.