This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Solaris X app crashes with Cygwin/X
On Wed, 6 Oct 2004, Maarten Boekhold wrote:
>
>
> Alexander Gottwald wrote:
> > The error message is not of much use.
>
> I figured.. I just wish it printed the real font name. Is there a way I
> can capture the xevent that tries to load the font
I know there is an protocol tracer for X11 but can't find it on the web
right now.
But you could try "strings <programname>". This will print everything
which can be considered as human readable text in the program and you
can search ther for a common font pattern: -sun- might be a good start.
or anything that matches the regexp -.*-.*-.*
$ strings <program> | grep -- -sun-
$ strings <program> | grep -E -- "-.*-.*-.*"
After you've isolated that name check to which file it belongs:
find the fonts.dir (or fonts.scale) where the string
$ find / -name "fonts.dir" -o -name "fonts.scale" | xargs grep -- "<fontpattern>"
Copy the file to cygwin (eg to /usr/X11R6/lib/X11/fonts/solaris)
add /usr/X11R6/lib/X11/fonts/solaris to /etc/X11/font-dirs
$ echo "/usr/X11R6/lib/X11/fonts/solaris" >>/etc/X11/font-dirs
update the local fonts.dir list
$ font-update
add the new directory to the fontpath
$ xset fp+ /usr/X11R6/lib/X11/fonts/solaris
And check if the program works. otherwise you'll have to try with a different pattern
> > But you can always add the fontpath yourself:
>
> Yeah, but I'm running on a laptop, and I'm not always on the same
> network. Not sure if that would cause any problems if 'solarishost' is
> not available...
Yes. most likely. Btw: You can remove the entry as easily as you can add it
xset fp- tcp/solarishost:7100
bye
ago
--
Alexander.Gottwald@s1999.tu-chemnitz.de
http://www.gotti.org ICQ: 126018723