Holger Vogt
a7aaac854f
enable color and font selection for X11:
...
Add graphics context gridgc for plotting the grids.
Enable rgbd:, input of color by RGB 0 ... 255
If no color1 (text/grid) is given,
select black or white according to backgrund color.
Error message, but no crash if font cannot be selected.
Enable separate linewidth selection for grid and graph.
2020-03-15 08:51:11 +01:00
Holger Vogt
800cd05f3d
new variable nolegend: with 'set nolegend' plotting of
...
the legend is suppressed.
2020-03-15 08:51:11 +01:00
Holger Vogt
fed7ef378f
add variable ticchar, allow an arbitrary character as ticmark
2020-03-15 08:51:11 +01:00
Holger Vogt
8639144093
cp_getvar: force a limit to a string entered
...
Issue a warning, truncate the string
2020-03-15 08:51:11 +01:00
Holger Vogt
1fda03382e
color input for text/grids (color1), background (color0)
...
and graphs (color2-22) on Windows via
set color2=red
set color2=rgb:ff/0/0
set color2=rgbd:255,0,0
several examples given in the example files
2020-03-15 08:51:11 +01:00
Holger Vogt
86917e3d36
enclose in WinGUI #ifdef
2020-03-15 08:51:11 +01:00
Holger Vogt
6094769fda
Restore original 'green', slight update on
...
auto color selection vs. background
2020-03-15 08:51:11 +01:00
Holger Vogt
cb38e7a367
enable using setting colors by colornn with 0<=nn<=22
...
The name list of colors is given by
https://www.codeproject.com/Articles/1276/Naming-Common-Colors
2020-03-15 08:51:10 +01:00
Holger Vogt
54778527c4
list of colors used
2020-03-15 08:51:10 +01:00
Holger Vogt
167bd9b433
enable color selection, if compiled with MINGW
2020-03-15 08:51:10 +01:00
Holger Vogt
3701ca0364
add color selection to WinGui plots
2020-03-15 08:51:10 +01:00
Holger Vogt
ef95ff7edc
generate variable oscompiled
...
test for variable
2020-03-15 08:51:10 +01:00
Holger Vogt
38bb89663d
replace old_x11 by HAVE_LIBXFT defined in configure
2020-03-15 08:51:09 +01:00
Holger Vogt
921058cb39
fix remaining bugs when EXT_ASC is defined
2020-03-15 08:51:09 +01:00
Holger Vogt
6e0b631492
Regain static behaviour, keep removing compiler warning
2020-03-15 08:51:09 +01:00
Holger Vogt
3a8e3d130c
update and unify font handling
2020-03-15 08:51:08 +01:00
Holger Vogt
bef9c70e71
Prepare font selection and rotation only once per graph
...
in func X11_DefineXft().
Only 0 and 90 degree are supported.
2020-03-15 08:51:08 +01:00
Holger Vogt
8312a8ade2
Select suitable default text color
2020-03-15 08:51:08 +01:00
Holger Vogt
3eb04b2fdc
improve on memory leaks
...
(not yet completely satisfying)
2020-03-15 08:51:08 +01:00
Holger Vogt
8f42eae6ab
add empty line after error message
2020-03-15 08:51:08 +01:00
Holger Vogt
a23748cf8c
Don't call DestroyGraph if graf id is 0
2020-03-15 08:51:08 +01:00
Holger Vogt
673069f442
add to the source window after 'source' command
2020-03-15 08:51:08 +01:00
Holger Vogt
fd96983099
Reset DevSwitch before returning
2020-03-15 08:51:08 +01:00
Holger Vogt
e7022f7fae
utf-8 string length determined by strlen
2020-03-15 08:51:08 +01:00
Holger Vogt
ac1c8c4a96
return NULL upon NULL input
2020-03-15 08:51:07 +01:00
Holger Vogt
93be5bab0c
increase buffer size, send text to string window,
...
retrieve the correct number of byte after utf-8 conversion.
Answering to a promt (e.g. after command 'hardcopy') does not
yet do.
2020-03-15 08:51:07 +01:00
Holger Vogt
510b1865b4
Re-sort wide char variable definitions.
...
add utf-8 ... utf-16 conversion.
Strings in history buffer shall remain utf-8.
History buffering is not yet working.
2020-03-15 08:51:07 +01:00
Holger Vogt
7a41921035
prevent crash if 'hardcopy' is given without parameters
2020-03-15 08:51:07 +01:00
Holger Vogt
6edb0eea41
re-organize PS color selection
...
Improve settings for PS image
Improve error messages
2020-03-15 08:51:07 +01:00
Holger Vogt
18f1e896f8
allow independent linewidth and gridwidth settings from within the .control section
2020-03-15 08:51:07 +01:00
Holger Vogt
7c0b72c387
prevent compiler warnings
...
enable short GUI interaction from within spfactor.c
2020-03-15 08:51:06 +01:00
Holger Vogt
bd7b35541d
Lengthy op calculations make the Win GUI unresposive.
...
A macro adds a short travel to the GUI fro0m within
the matrix ordering and factoring. Time overhead
during op is less than 0.5%.
2020-03-15 08:51:06 +01:00
Holger Vogt
3d009fef22
Variables xbrushwidth and gridwidth (to be set e.g. in
...
.spiceinit) allow setting separately the linewidths of the
graph (xbrushwidth) and the grid (gridwidth).
2020-03-15 08:51:06 +01:00
Holger Vogt
c9edc6fcb3
Add function returning the true string length in pixels.
...
May be called from outside of x11.c.
2020-03-15 08:51:06 +01:00
Holger Vogt
10f0eea93e
add gridwidth, xbrushwidth to postscript output
2020-03-15 08:51:06 +01:00
Holger Vogt
ca7c77315a
add missing üarameter to DevDrawLine for X11 and HPGL
2020-03-15 08:51:06 +01:00
Holger Vogt
8751092812
Enable separate linewidths for grids and graphs.
...
New variable gridwidth overrides xbrushwidth for graphs.
Fcn DevDrawLine() with boolean flag if grid is plotted.
Postscript, Gnuplot and X11 not (yet) supported.
2020-03-15 08:51:05 +01:00
Holger Vogt
7690b64571
add missing declaration of old_x11
2020-03-15 08:51:05 +01:00
h_vogt
7c3a305d43
add wide char for string i/o under Windows
...
add utf-8 systax check
2020-03-15 08:51:05 +01:00
h_vogt
22f4e8f82d
return extended ascii as alpha
2020-03-15 08:51:05 +01:00
Holger Vogt
85142709fc
For UNICODE use char in comparison to ' '
...
only as unsigned char
2020-03-15 08:51:05 +01:00
h_vogt
531c229b0e
Add library xft for allowing text rotation.
...
Setting variabe 'old_x11' will retain previous behaviour.
2020-03-15 08:51:05 +01:00
h_vogt
0cdea87cb5
Add and ignore angle in fcn for text out
2020-03-15 08:51:05 +01:00
Holger Vogt
0dfe8a22ad
add angle to allow text rotation
2020-03-15 08:51:04 +01:00
h_vogt
697facdc30
#define fopen newfopen
...
and header for MINGW and MS VS
2020-03-15 08:51:04 +01:00
h_vogt
9f272ea8f6
function newfopen to replace fopen
...
by reading wide char strings
2020-03-15 08:51:04 +01:00
Holger Vogt
59adfc1d68
add extended ascii and its selection
...
converter UTF-8 to ISO-8859-1/ISO-8859-15
2020-03-15 08:51:04 +01:00
Holger Vogt
c4f641dad6
remove bracket left over from recent manual merge conflict resolution
2020-03-15 08:51:04 +01:00
h_vogt
dbd0a5743a
Enable utf-8 and UNICODE for string handling.
...
preprocessor flag EXT_ASC resets handling to old behaviour.
Add utf-16 wide char to all Windows string i/o.
Add translation between utf-8 and utf-16.
Add angle to fcn DevDrawText.
2020-03-15 08:51:04 +01:00
Holger Vogt
28c0fbf397
Zero fp, this fixes bug no #475
2020-03-15 08:51:04 +01:00