MATLAB: What font does MATLAB use

MATLAB

I'm writing my own documentation, and I want to display the code in the same font that MATLAB does in the Editor and Command Window.  What font is that?

Best Answer

There is no specific default font for MATLAB. MATLAB chooses a font to display based on your Java settings.
In order to figure out what font is being used on your machine, please read the following reference:
https://docs.oracle.com/javase/8/docs/technotes/guides/intl/fontconfig.html#loading
This will point you towards a specific Java configuration file.  Within this file you should see a line starting with
monospaced.plain.alphabetic=
followed by the name of a font.  This is the font that MATLAB will use.
Related Question