<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>Hi Samuel, <br></div><div><br></div><div>I am not sure whether the information from the preference tab are the one you need, if so, perhaps it could be retrieved by:<br></div><div><br></div><div>--> my_font = xmlGetValues("//fonts/body/fonts", ["font-face", "font-name", "font-size", "item", "latex", "system"]) <br></div><div>my_font =<br></div><div><br></div><div>!plain Monospaced 13 Console 15 true !<br></div><div><br></div><div><br></div><div>--> my_font = xmlGetValues("//fonts/body/fonts/item", ["desktop", "font-face", "font-name", "font-size", "name"])<br></div><div>my_font =<br></div><div><br></div><div>!false bold Monospaced 16 Console !<br></div><div>! !<br></div><div>!false bold Monospaced 16 Scinotes !<br></div><div><br></div><br><div data-zbluepencil-ignore="true" style="" class="zmail_extra"><br><div id="Zm-_Id_-Sgn1">---- On Wed, 30 Oct 2019 03:44:21 +0800 <b>Samuel Gougeon <sgougeon@free.fr></b> wrote ----<br></div><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); padding-left: 6px; margin: 0px 0px 0px 5px;"><div>Le 29/10/2019 à 18:16, Samuel Gougeon a écrit :<br>> Le 29/10/2019 à 02:22, ol.bond a écrit :<br>>> Dear Samuel,<br>>><br>>> You may try to use buil in interpreter of Tcl/Tk.<br>>><br>>> Try the following instruction: TCL_EvalStr("set s [font actual <br>>> systemfont]")<br>><br>> --> TCL_EvalStr("set s [font actual systemfont]")<br>> ans =<br>> -family Arial -size 10 -weight normal -slant roman -underline 0 <br>> -overstrike 0<br><br><br>After some tests, this answer does not look (always) reliable.<br>In NW and NWNI mode on Windows, it is possible to change at any time the <br>font used in the cmd.exe terminal homing the scilab session. This <br>immediately changes the rendering in the Scilab console.<br>But this does not change the TCL_EvalStr() answer, that is always <br>"Arial" on my system, even when actually setting "Consolas" or "Lucida <br>console" as the actual font.<br><br>In Scilab STD mode, i don't know how to check if Arial is actually the <br>system's font.<br><br>Samuel<br><br>_______________________________________________<br>users mailing list<br><a target="_blank" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br><a target="_blank" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a><br></div></blockquote></div><div><br></div></div><br></body></html>