Page 1 sur 1

Font size and colors

Publié : mer. sept. 08, 2021 11:05 pm
par XcasEngGuy
I noticed that when I open old xws files the fonts and colors are often different. It appears they are controlled with something inside the xws file. I see a lot of data I can't decipher. Can you tell me what part of the xws file controls fonts and colors?

Matt

Re: Font size and colors

Publié : mar. sept. 14, 2021 6:55 am
par parisse
Colors are controlled globally in the ~/.xcasrc or xcas.rc configuration file (in the widget_size command). There is no way to control them inside individual sessions.

Re: Font size and colors

Publié : ven. sept. 17, 2021 1:12 am
par XcasEngGuy
I have attached 3 .xws files that open with different colors and fonts on my machine (Win 10 64 bit 20H2). I am running the 64 bit cygwin version 1.7.0-29. Do these open and look different from each other for you?

Matt

Re: Font size and colors

Publié : ven. sept. 17, 2021 5:43 am
par parisse
The difference is that your sessions made with old versions of Xcas have different commandline widgets, and the old ones do not provide syntax highlighting.
old: // fltk N4xcas19Multiline_Input_tabE 19 -168 866 24 14 0
new: // fltk N4xcas16Xcas_Text_EditorE 11 56 854 25 14 0

Re: Font size and colors

Publié : ven. sept. 17, 2021 6:11 pm
par XcasEngGuy
Excellent.

Thanks
Matt