Programmatic Check For Monospace Font?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Malcolm Lidierth
am 9 Okt. 2011
listeners=com.mathworks.mde.cmdwin.CmdWinDocument.getInstance().getDocumentListeners();
listeners(3).getFont()
2 Kommentare
Walter Roberson
am 9 Okt. 2011
Some day I'll have to figure out what the difference is between .services and .mlservices and .mde and ....
Weitere Antworten (1)
Walter Roberson
am 9 Okt. 2011
I do not see one at the moment, but if a way exists it might be found under com.mathworks.mlservices
0 Kommentare
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!