[Date Index]
[Thread Index]
[Author Index]
Re: Re: xvnc Mathematica menu fonts
*To*: mathgroup at smc.vnet.net
*Subject*: [mg71359] Re: [mg71080] Re: [mg70097] [mg69532] xvnc Mathematica menu fonts
*From*: Arturas Acus <acus at itpa.lt>
*Date*: Wed, 15 Nov 2006 06:45:44 -0500 (EST)
*References*: <200610031016.GAA06409@smc.vnet.net>
Dear Chris,
It happened, that recently I had to play with webMathematica
installation. For this purposes I had to run Mathematica frontend on Xvnc
without mentioned problems. The complete solution in my case was to use
the following $fontpath line
$fontPath =
"/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/75dpi/,/home/acus/bin/Wolfram/5.2/SystemFiles/Fonts/Type1,/home/acus/bin/Wolfram/5.2/SystemFiles/Fonts/BDF";
In adition I had to modify xstartup file in the ~/.vnc directory in the
following way
------------------------------xstartup---------------
#!/bin/sh
xrdb $HOME/.Xresources
exec /usr/X11R6/bin/fvwm
----------------------
where .Xresources is the following file in my home dir:
----------------.Xresources----------------------MMA relevant
part--------
! please see also XMathematica.cde faile in instalation tree
XMathematica*fontList: -adobe-helvetica-bold-r-normal-*-17-*-*-*-*-*-*
! numlock
XMathematica*primaryModifierMask: Mod1Mask
XMathematica*secondaryModifierMask: Mod3Mask
! wrong behaviour!!
!XMathematica*geometry: 1580x1850
!*XMathematica.width: 1200
!*XMathematica.height: 1850
*useStandardColormaps: FALSE
*wwwBrowser: (URL=%s; (mozilla -remote "openURL($URL)" > /dev/null) ||
mozilla $URL)
*printCommand: lpr -P WinEpson
---------------------------------------
With this modification Mathematica frontend starts correctly under Xvnc
(tightvnc tested) with correct fonts and no error warnings
(well there one is printed in the console window: that
-adobe-helvetica-bold-r-normal-*-17-*-*-*-*-*-* cannot be correctly
convereted to FontStruct. But this is irrelewant.
Tr, 2006 11 08 06:13 -0500, Chris Chiasson raðë:
> 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/
> >
> >
>
>
--
Arturas Acus <acus at itpa.lt>
Prev by Date:
**Re: List difference using patterns and substitutions.**
Next by Date:
**[Fwd: tripartite K(n) linked graphs as polynomials]**
Previous by thread:
**Re: xvnc Mathematica menu fonts**
Next by thread:
**Simple Problem with Polyhedron::Hexahedron**
| |