Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: xvnc Mathematica menu fonts

  • To: mathgroup at
  • Subject: [mg71080] Re: [mg70097] [mg69532] xvnc Mathematica menu fonts
  • From: "Chris Chiasson" <chris at>
  • Date: Wed, 8 Nov 2006 06:04:41 -0500 (EST)
  • References: <>

"Couldn't start Xvnc; trying default font path.
Please set correct fontPath in the vncserver script."

was caused by the inclusion of /usr/share/fonts/corefonts/ in my font path.

It appears the $fontPath variable can take comma or colon separated lists.

The following command in the vncserver script is good enough to get
rid of the above mentioned error, as well as the error with dialog box
mentioned in my quoted email below.

$fontPath = "/usr/share/fonts/misc/,/usr/share/fonts/Type1/,/usr/share/fonts/100dpi/,/usr/share/fonts/75dpi/,/usr/share/fonts/freefont/";

Also, I am able to see that Mathematica is adding


to the font path via xset -display :1 -q (before and after running Mathematica).

Unfortunately, the $fontpath above does not make Mathematica's menu
fonts render correctly. I am guessing that when Mathematica can't find the
Times font, it changes its menu font to some sort of fallback.

On 10/3/06, Chris Chiasson <chris at> wrote:
> It appears xvnc/tightvnc has switched from using comma delimited paths
> to colon delimited paths.
> My distribution's startup script was still using the commas.
> Once I switched it over to colons, Mathematica at least showed letters
> in the menus instead of the square outlines.
> However, Mathematica now starts up with a dialog box that must be
> handled by the user, which I quote:
> Unable to find font family Times with requested face (weight Plain,
> slant Plain). Substituting closest match. Exit. Continue.
> After making the switch, I also found I could now delete the symlinks
> (I think I'm using from
> /usr/share/fonts/ to /usr/lib/X11/fonts
> /usr/ to /usr/X11R6
> that the (presently outdated) Gentoo wiki xvnc howto recommends.
> However, that doesn't help with the dialog box.
> The dialog box is bad because I need for Mathematica to execute unattended.
> On 10/2/06, Arturas Acus <acus at> wrote:
> > Dear Chris, recenly you posted question about Mathematica menu fonts.
> > The solution I found was to explicitly define fontPath in vncserver
> > startup script. In particularry the following line in vncserver script
> > resolved my problems on slamd64 linux distribution:
> >
> >  $fontPath =
> > "/usr/X11R6/lib/X11/fonts/misc/:/usr/X11R6/lib/X11/fonts/Type1/:/usr/X11R6/lib/X11/fonts/TTF/:/usr/X11R6/lib/X11/fonts/75dpi/:/usr/X11R6/lib/X11/fonts/100dpi/";
> >
> > (if the first folder was set not to fonts/misc, then the problem
> > remained).
> >
> > If the solution will work for You, please forward it to Mathematica group list.
> >
> >
> > Sincerely,
> > --
> > Arturas Acus <acus at>
> >
> >
> > --
> > Arturas Acus <acus at>
> >
> --


  • Prev by Date: Re: Adding a key binding for a Style
  • Next by Date: Re: Re: Factor.....
  • Previous by thread: Re: xvnc Mathematica menu fonts
  • Next by thread: Re: Re: xvnc Mathematica menu fonts