Solaris X app crashes with Cygwin/X
Wed Oct 6 16:42:00 GMT 2004
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
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
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
http://www.gotti.org ICQ: 126018723
More information about the Cygwin-xfree