Font size and colors

Messages in english

Modérateur : xcasadmin

XcasEngGuy
Messages : 145
Inscription : mer. janv. 13, 2010 3:20 pm

Font size and colors

Message par XcasEngGuy » mer. sept. 08, 2021 11:05 pm

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

parisse
Messages : 5731
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: Font size and colors

Message par parisse » mar. sept. 14, 2021 6:55 am

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.

XcasEngGuy
Messages : 145
Inscription : mer. janv. 13, 2010 3:20 pm

Re: Font size and colors

Message par XcasEngGuy » ven. sept. 17, 2021 1:12 am

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
Pièces jointes
Examples.zip
3 xws files created in different versions
(2.55 Kio) Téléchargé 90 fois

parisse
Messages : 5731
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: Font size and colors

Message par parisse » ven. sept. 17, 2021 5:43 am

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

XcasEngGuy
Messages : 145
Inscription : mer. janv. 13, 2010 3:20 pm

Re: Font size and colors

Message par XcasEngGuy » ven. sept. 17, 2021 6:11 pm

Excellent.

Thanks
Matt

Répondre