[PATCH xfs] Document catalogue:<dir> feature

Ademar de Souza Reis Jr. ademar at mandriva.com.br
Wed Jun 20 11:11:08 PDT 2007


On Wed, Jun 20, 2007 at 01:54:28PM -0400, Kristian Høgsberg wrote:
>  On 6/20/07, Ademar de Souza Reis Jr <ademar at mandriva.com.br> wrote:
>  ...
> > +.SH "FONTPATH.D"
> > +You can specify a special kind of font path in the form 
> > \fBcatalogue:<dir>\fR.
> > +The directory specified after the catalogue: prefix will be scanned for 
> > symlinks
> > +and each symlink destination will be added as a local fontfile FPE.
> > +The symlink can be suffixed by attributes, such as '\fBunscaled\fR', which
> > +will be passed through to the underlying fontfile FPE.  Except the new
> > +attribute '\fBpri\fR' which will be used for ordering the fontfile FPEs.
> 
>  I would probably rephrase the last sentence ("Except the new...") to
>  something like: "A new 'pri' attribute is introduced, which will be
>  used for ordering the font paths specified by the symlinks.".

These are your own words which I copy&pasted from the patch ;-)

Improved manpage patch below, thanks for the hint:

 xfs.man |   39 ++++++++++++++++++++++++++++++++++++---
  1 file changed, 36 insertions(+), 3 deletions(-)

diff --git a/xfs.man b/xfs.man
index 1a5cd11..e3c56b2 100644
--- a/xfs.man
+++ b/xfs.man
@@ -124,9 +124,10 @@ Recognized keywords include:
 .\" Size in bytes of the font server cache.
 .IP "catalogue (list of string)"
 Ordered list of font path element names.
-Use of the keyword "catalogue" is very misleading at present,
-the current implementation only supports a single catalogue ("all"),
-containing all of the specified fonts.
+The current implementation only supports a single catalogue ("all")
+containing all of the specified fonts. A special directory with
+symlinks to font paths can be specified using a catalogue:<dir>
+entry. See the FONTPATH.D section below for details.
 .IP "alternate-servers (list of string)"
 List of alternate servers for this font server.
 .IP "client-limit (cardinal)"
@@ -167,6 +168,38 @@ enabled for all fonts, and "16", meaning it is enabled only for
 .\" Those clients the fontserver will talk to.  Others
 .\" will be refused for the initial connection.  An empty
 .\" list means the server will talk to any client.
+.SH "FONTPATH.D"
+You can specify a special kind of font path in the form \fBcatalogue:<dir>\fR.
+The directory specified after the catalogue: prefix will be scanned for symlinks
+and each symlink destination will be added as a local fontfile FPE.
+.PP
+The symlink can be suffixed by attributes such as '\fBunscaled\fR', which
+will be passed through to the underlying fontfile FPE. The only exception is
+the newly introduced '\fBpri\fR' attribute, which will be used for ordering
+the font paths specified by the symlinks.
+
+An example configuration:
+
+.nf
+    75dpi:unscaled:pri=20 \-> /usr/share/X11/fonts/75dpi
+    ghostscript:pri=60 \-> /usr/share/fonts/default/ghostscript
+    misc:unscaled:pri=10 \-> /usr/share/X11/fonts/misc
+    type1:pri=40 \-> /usr/share/X11/fonts/Type1
+    type1:pri=50 \-> /usr/share/fonts/default/Type1
+.fi
+
+This will add /usr/share/X11/fonts/misc as the first FPE with the attribute
+'unscaled', second FPE will be /usr/share/X11/fonts/75dpi, also with
+the attribute unscaled etc. This is functionally equivalent to setting
+the following font path:
+
+.nf
+    /usr/share/X11/fonts/misc:unscaled,
+    /usr/share/X11/fonts/75dpi:unscaled,
+    /usr/share/X11/fonts/Type1,
+    /usr/share/fonts/default/Type1,
+    /usr/share/fonts/default/ghostscript
+.fi
 .SH "EXAMPLE"
 .nf
 XCOMM

-- 
Ademar de Souza Reis Jr.
Mandriva - http://www.mandriva.com.br

^[:wq!



More information about the xorg mailing list