x11.c, fix bug #330, rename csh variable font -> xfont

reported by graahnul.grom in
  #330 setting xfont in .spiceinit has no effect
  https://sourceforge.net/p/ngspice/bugs/330/
This commit is contained in:
h_vogt 2016-09-25 16:13:09 +02:00 committed by rlar
parent 30be67b960
commit 6f609abc27
1 changed files with 1 additions and 1 deletions

View File

@ -425,7 +425,7 @@ X11_NewViewport(GRAPH *graph)
XtAddCallback(DEVDEP(graph).buttons[1], XtNcallback, hardcopy, graph);
/* set up fonts */
if (!cp_getvar("font", CP_STRING, fontname))
if (!cp_getvar("xfont", CP_STRING, fontname))
(void) strcpy(fontname, DEF_FONT);
for (p = fontname; *p && *p <= ' '; p++)