Programmatic Check For Monospace Font?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Malcolm Lidierth
2011-10-9
listeners=com.mathworks.mde.cmdwin.CmdWinDocument.getInstance().getDocumentListeners();
listeners(3).getFont()
2 个评论
Walter Roberson
2011-10-9
Some day I'll have to figure out what the difference is between .services and .mlservices and .mde and ....
更多回答(1 个)
Walter Roberson
2011-10-9
I do not see one at the moment, but if a way exists it might be found under com.mathworks.mlservices
0 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!