Programmatic Check For Monospace Font?
    4 views (last 30 days)
  
       Show older comments
    
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?
0 Comments
Accepted Answer
  Malcolm Lidierth
      
 on 9 Oct 2011
        listeners=com.mathworks.mde.cmdwin.CmdWinDocument.getInstance().getDocumentListeners();
listeners(3).getFont()
2 Comments
  Walter Roberson
      
      
 on 9 Oct 2011
				Some day I'll have to figure out what the difference is between .services and .mlservices and .mde and ....
More Answers (1)
  Walter Roberson
      
      
 on 9 Oct 2011
        I do not see one at the moment, but if a way exists it might be found under com.mathworks.mlservices
0 Comments
See Also
Categories
				Find more on Environment and Settings in Help Center and File Exchange
			
	Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

