[MacPorts] #24534: xorg-server @1.7.6 has faulty X11 fontpath

MacPorts noreply at macports.org
Tue Apr 20 10:10:54 PDT 2010


#24534: xorg-server  @1.7.6 has faulty X11 fontpath
--------------------------------------+-------------------------------------
 Reporter:  Peter_Dyballa@…           |       Owner:  jeremyhu@…           
     Type:  defect                    |      Status:  new                  
 Priority:  Normal                    |   Milestone:                       
Component:  ports                     |     Version:  1.8.2                
 Keywords:                            |        Port:  xorg-server          
--------------------------------------+-------------------------------------

Comment(by Peter_Dyballa@…):

 Replying to [comment:4 jeremyhu@…]:
 > the fontpath should be getting set by
 /opt/X11/lib/X11/xinit/xinitrc.d/10-fontdir.sh

 I have /opt/local/lib/X11/xinit/xinitrc.d/10-fontdir.sh – and it has now,
 that xorg-server-devel is activated (XQuartz 2.5.1 (xorg-server 1.8.0)),
 this contents:

 {{{
 if [ -x /usr/X11/bin/xset ] ; then
 fontpath="/usr/X11/lib/X11/fonts/misc/,/usr/X11/lib/X11/fonts/TTF/,/usr/X11/lib/X11/fonts/OTF,/usr/X11/lib/X11/fonts/Type1/,/usr/X11/lib/X11/fonts/75dpi/:unscaled,/usr/X11/lib/X11/fonts/100dpi/:unscaled,/usr/X11/lib/X11/fonts/75dpi/,/usr/X11/lib/X11/fonts/100dpi/"

         [ -e "$HOME"/.fonts/fonts.dir ] &&
 fontpath="$fontpath,$HOME/.fonts"
         [ -e "$HOME"/Library/Fonts/fonts.dir ] &&
 fontpath="$fontpath,$HOME/Library/Fonts"
         [ -e /Library/Fonts/fonts.dir ] &&
 fontpath="$fontpath,/Library/Fonts"
         [ -e /System/Library/Fonts/fonts.dir ] &&
 fontpath="$fontpath,/System/Library/Fonts"

         /usr/X11/bin/xset fp= "$fontpath"
         unset fontpath
 fi
 }}}

 In /Library/Fonts I have created subdirectories to contain particular
 groups of (for example Linux Libertine, those of my PostScript 3 printer,
 those once in iTunes, and of course a whole bunch of) public domain fonts.
 I think this is a good way of handling these extraneous fonts. Could the
 script be extended to scan for subdirectories?

 There could also be another script to add for example TeX fonts to X11
 Font Path...

-- 
Ticket URL: <http://trac.macports.org/ticket/24534#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list