Bug 6971

Summary: Xprt does not find 'fixed' font
Product: xprint Reporter: paul <ephraim_owns>
Component: OtherAssignee: Roland Mainz <roland.mainz>
Status: RESOLVED WONTFIX QA Contact:
Severity: blocker    
Priority: high CC: MostAwesomedude
Version: unspecified   
Hardware: PowerPC   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:

Description paul 2006-05-19 20:45:49 UTC
[shadesofgray:/private/tmp] paul% ./xprint diag
##### Diag start Fri May 19 03:28:35 PDT 2006.
## General info start.
  PATH="/usr/bin:/bin:/usr/sbin:/sbin"
  TZ=""
  LANG=""
  uname -a="Darwin shadesofgray 6.8 Darwin Kernel Version 6.8: Wed Sep 10
15:20:55 PDT 2003; root:xnu/xnu-344.49.obj~2/RELEASE_PPC  Power Macintosh powerpc"
  uname -s="Darwin"
  uname -p="powerpc"
  uname: illegal option -- i
  usage: uname [-amnprsv]
  uname -i=""
  uname -m="Power Macintosh"
  has /etc/SuSE-release ... no
  has /etc/redhat-release ... no
  has /etc/debian_version ... no
  ps: illegal option -- f
  usage: ps [-aChjlmMrSTuvwx] [-O|o fmt] [-p pid] [-t tty] [-U user]
  [-N system] [-W swap]
  ps [-L]
  how many Xprt servers are running ...       0
## General info end.
## Testing font paths start.
  #### Testing "/usr/lib/X11/fonts/Type1/" ...
  #### Testing "/usr/lib/X11/fonts/TTF/" ...
  #### Testing "/usr/lib/X11/fonts/misc/" ...
  /usr/lib/X11/fonts/misc//fonts.dir has cursor font.
  /usr/lib/X11/fonts/misc//fonts.dir has fixed font.
  /usr/lib/X11/fonts/misc//fonts.alias has cursor font.
  /usr/lib/X11/fonts/misc//fonts.alias has fixed font.
  #### Testing "/usr/lib/X11/fonts/75dpi/" ...
  #### Testing "/usr/lib/X11/fonts/100dpi/" ...
## Testing font paths end.
##### Diag End Fri May 19 03:28:48 PDT 2006.
[shadesofgray:/private/tmp] paul% ./xprint start
./xprint: Old server registry found, cleaning-up...
Stopping Xprint servers: Xprt.
Starting Xprint servers: Xprt.
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
sh: nawk: command not found
Could not init font path element /usr/lib/X11/fonts/Type1/, removing from list!
Could not init font path element /usr/lib/X11/fonts/TTF/, removing from list!
Could not init font path element /usr/lib/X11/fonts/misc/, removing from list!
Could not init font path element /usr/lib/X11/fonts/75dpi/, removing from list!
Could not init font path element /usr/lib/X11/fonts/100dpi/, removing from list!

Fatal server error:
could not open default font 'fixed'
Xprint server pid=1604 done, exitcode=0.

also, reading the faq on xprint.mozdev.org
(http://xprint.mozdev.org/docs/Xprint_FAQ.html#id2879415 &
http://xprint.mozdev.org/docs/Xprint_FAQ.html#id2879513)
checked for a fixed font

[shadesofgray:X11/fonts/misc] root# pwd
/usr/lib/X11/fonts/misc
[shadesofgray:X11/fonts/misc] root# grep ^fixed fonts.alias 
fixed        -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
[shadesofgray:X11/fonts/misc] root# grep
misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1 fonts.dir 
6x13-ISO8859-1.pcf.gz
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
6x13-ISO8859-10.pcf.gz
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-10
6x13-ISO8859-11.pcf.gz
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-11
6x13-ISO8859-13.pcf.gz
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-13
6x13-ISO8859-14.pcf.gz
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-14
6x13-ISO8859-15.pcf.gz
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-15
6x13-ISO8859-16.pcf.gz
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-16
[shadesofgray:X11/fonts/misc] root# ls -l 6x13-ISO8859-1.pcf.gz
6x13-ISO8859-10.pcf.gz 6x13-ISO8859-11.pcf.gz 6x13-ISO8859-13.pcf.gz
6x13-ISO8859-14.pcf.gz 6x13-ISO8859-15.pcf.gz 6x13-ISO8859-16.pcf.gz 
-rw-r--r--  1 root  wheel  4637 Apr 26 12:35 6x13-ISO8859-1.pcf.gz
-rw-r--r--  1 root  wheel  4551 Apr 26 12:35 6x13-ISO8859-10.pcf.gz
-rw-r--r--  1 root  wheel  4409 Apr 26 12:35 6x13-ISO8859-11.pcf.gz
-rw-r--r--  1 root  wheel  4689 Apr 26 12:35 6x13-ISO8859-13.pcf.gz
-rw-r--r--  1 root  wheel  4502 Apr 26 12:35 6x13-ISO8859-14.pcf.gz
-rw-r--r--  1 root  wheel  4614 Apr 26 12:35 6x13-ISO8859-15.pcf.gz
-rw-r--r--  1 root  wheel  4547 Apr 26 12:35 6x13-ISO8859-16.pcf.gz
[shadesofgray:X11/fonts/misc] root# 

the xserver gives me no trouble with an 'xterm -fn fixed'

i've regenerated the fonts.scale and fonts.dir files over and over again, and it
still refuses to start
Comment 1 paul 2006-05-31 19:44:23 UTC
i guess this is a problem with Xprt being linked with a dynamic libXfont as
opposed to a static one

http://www.cygwin.com/ml/cygwin-xfree/2003-10/msg00292.html
that seems to be related
Comment 2 Lan Liu 2007-08-17 23:55:29 UTC
Hi,

I don't know whether the problem has been solved yet.

I found same X-Win can not start problem these days. After some trace, I found the problem is due to fontdir.c in libXfont can not handle fonts.dir properly, if it is in DOS (LF/CR) format.

Which means, when you install XWin font componets by setup.exe, if select "DOS / text" mode in "Default Text File Type" setting, it will cause the problem. Because the fonts.dir in /usr/X11R6/lib/X11/fonts/misc, which is genertaed by post shell, will be the LF/CR format. 
Comment 3 Corbin Simpson 2011-09-13 12:51:56 UTC
Closing WONTFIX because nobody cares about Xprint. Reopen if you plan to address this bug.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.