MATLAB: Programmatic Check For Monospace Font

fontMATLABmonospaceprogrammatic

I'm looking for a method to programmatically check if the console font in use is a monospace font. I want to print a warning that my script's ouput may not look correct if a monospace font is not in use. Can this be done?

Best Answer

listeners=com.mathworks.mde.cmdwin.CmdWinDocument.getInstance().getDocumentListeners();
listeners(3).getFont()
Related Question