[xorg-bugzilla-noise] [Bug 908] New: Xserver on Darwin cannot open font in custom directory

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jul 20 16:08:40 PDT 2004


Please do not reply to this email: if you want to comment on the bug, go to         
the URL shown below and enter yourcomments there.  
  
https://freedesktop.org/bugzilla/show_bug.cgi?id=908       
  
           Summary: Xserver on Darwin cannot open font in custom directory
           Product: xorg
           Version: CVS_head
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: critical
          Priority: P2
         Component: cvs
        AssignedTo: xorg-bugzilla-noise at freedesktop.org
        ReportedBy: roland.mainz at nrubsig.org
                CC: eich at pdx.freedesktop.org,roland.mainz at nrubsig.org,torrey
                    @mrcla.com


2004-07-20-trunk on Darwin/PPC:

An Xserver cannot open a font in a custom directory.

Steps to reproduce:
1. Pull source
2. Build
% make World 2>&1 | tee -a buildlog.log
3. Install:
% make install DESTDIR=/tmp/xptestinstall007 2>&1 | tee -a ../install.log
4. Fetch all fonts on the system:
% export
FONT_ENCODINGS_DIRECTORY=/tmp/xptestinstall007/usr/X11R6/lib/X11/fonts/encodings/encodings.dir
% find / 2>/dev/null | egrep  -i "\.ttf|\.ttc|\.otf|\.otc|\.pfa|\.pfb" | tee
allfonts.txt
% mkdir -p /Users/gisburn/tmp/allfonts/test1
% cd /Users/gisburn/tmp/allfonts/test1
% cat ../allfonts.txt | while read i ; do cp "$i" "$(basename "$i" | tr -d -C
'[:alnum:].')" ; done
% mkfontscale
% mkfontdir
5. Run Xserver:
% (ulimit -d unlimited -v unlimited ; ulimit -a ; export
FONT_ENCODINGS_DIRECTORY=/tmp/xptestinstall007/usr/X11R6/lib/X11/fonts/encodings/encodings.dir
MYINSTDIR=/tmp/xptestinstall007 DYLD_LIBRARY_PATH=$PWD/../../exports/lib/ ;
export XPCONFIGDIR=/tmp/xptestinstall007/usr/X11R6/lib/X11/xserver ; ./Xprt -ac
-audit 4 -core -fp
/Users/gisburn/tmp/allfonts/test1,${MYINSTDIR}/usr/X11R6/lib/X11/fonts/Type1/,${MYINSTDIR}/usr/X11R6/lib/X11/fonts/truetype/,${MYINSTDIR}/usr/X11R6/lib/X11/fonts/japanese/,${MYINSTDIR}/usr/X11R6/lib/X11/fonts/misc/
:40)

6. Now test whether the font "-adobe-kozuka mincho pro acro
r-medium-r-normal--0-0-0-0-p-0-jisx0201.1976-0" is there:
% xlsfonts -display lamancha.opendarwin.org:40 -fn '-adobe-kozuka mincho pro
acro r-medium-r-normal--0-0-0-0-p-0-jisx0201.1976-0' 
-adobe-kozuka mincho pro acro r-medium-r-normal--0-0-0-0-p-0-jisx0201.1976-0

... so the font is being listed - but trying to _open_ it fails:

% xlsfonts -ll -display lamancha.opendarwin.org:40 -fn '-adobe-kozuka mincho pro
acro r-medium-r-normal--0-0-0-0-p-0-jisx0201.1976-0' 
xlsfonts:  unable to get info about font "-adobe-kozuka mincho pro acro
r-medium-r-normal--0-0-0-0-p-0-jisx0201.1976-0"       
  
  
--        
Configure bugmail: https://freedesktop.org/bugzilla/userprefs.cgi?tab=email      
  
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the xorg-bugzilla-noise mailing list