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!