MathGroup Archive 2006

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

Search the Archive

Re: xvnc Mathematica menu fonts

  • To: mathgroup at smc.vnet.net
  • Subject: [mg71082] Re: [mg70097] [mg69532] xvnc Mathematica menu fonts
  • From: "Chris Chiasson" <chris at chiasson.name>
  • Date: Wed, 8 Nov 2006 06:04:59 -0500 (EST)
  • References: <200610031016.GAA06409@smc.vnet.net> <acbec1a40611061143x4673ca35m1e1d24c1c1e7bbd1@mail.gmail.com>

I should mention that under regular X windows, the "same" (okay, not
exactly the same, but accounting for the symbolic links I put in...)
font paths as used for xvnc give me menus with text (instead of
blocks).

On 11/6/06, Chris Chiasson <chris at chiasson.name> wrote:
> The
> "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
>
> "/usr/local/Wolfram/Mathematica/5.2/SystemFiles/Fonts/Type1/,/usr/local/Wolfram/Mathematica/5.2/SystemFiles/Fonts/BDF/"
>
> 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 chiasson.name> 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 X.org) 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 itpa.lt> 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 itpa.lt>
> > >
> > >
> > > --
> > > Arturas Acus <acus at itpa.lt>
> > >
> >
> >
> > --
> > http://chris.chiasson.name/
> >
> >
>
>
> --
> http://chris.chiasson.name/
>


-- 
http://chris.chiasson.name/


  • Prev by Date: Re: Assuming non-integer values in Mathematica simplifications
  • Next by Date: Re: xvnc Mathematica menu fonts
  • Previous by thread: Re: xvnc Mathematica menu fonts
  • Next by thread: Re: xvnc Mathematica menu fonts