I create a font object in Java using
new Font("Arial, Helvetica, Helv", 1, 10);
Neither Arial nor Helvetica is installed on my computer. How do I find out what actual font gets used? Does OpenJDK have it's own fonts?
I create a font object in Java using
new Font("Arial, Helvetica, Helv", 1, 10);
Neither Arial nor Helvetica is installed on my computer. How do I find out what actual font gets used? Does OpenJDK have it's own fonts?
As I know OpenJDK is not shipped with font like Oracle JDK, so very likely you are loading your font from your operating system.
Are you sure what is being displayed is "Arial, Helvetica, Helv"? Base on Java Doc, if the font cannot be found, Java will try to load the closer font family/face, or proceed with some algorithm to achieve the desired style. You can check the link to read more.