From 6549707c976bf68cb56f8b807196c7ad848bdfe4 Mon Sep 17 00:00:00 2001 From: Kaleb Keithley Date: Wed, 26 Nov 2003 22:49:11 +0000 Subject: merge latest (4.3.99.16) from XFree86 (vendor) branch --- grid.h | 6 +----- xfd.c | 7 +++++-- xfd.man | 14 +++++++++++--- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/grid.h b/grid.h index 3d9cc7d..eb9f243 100644 --- a/grid.h +++ b/grid.h @@ -26,7 +26,7 @@ other dealings in this Software without prior written authorization from The Open Group. */ -/* $XFree86: xc/programs/xfd/grid.h,v 1.4 2002/07/23 01:45:41 tsi Exp $ */ +/* $XFree86: xc/programs/xfd/grid.h,v 1.5 2003/11/17 22:20:53 dawes Exp $ */ #ifndef _FontGrid_h_ #define _FontGrid_h_ @@ -81,22 +81,18 @@ typedef struct _FontGridCharRec { } FontGridCharRec; extern void GetFontGridCellDimensions( -#if NeedFunctionPrototypes Widget, long *, int *, int * -#endif ); extern void GetPrevNextStates( -#if NeedFunctionPrototypes Widget, Bool *, Bool *, Bool *, Bool * -#endif ); long diff --git a/xfd.c b/xfd.c index 0e28170..bf6f0e9 100644 --- a/xfd.c +++ b/xfd.c @@ -26,7 +26,7 @@ in this Software without prior written authorization from The Open Group. * * * Author: Jim Fulton, MIT X Consortium */ -/* $XFree86: xc/programs/xfd/xfd.c,v 1.8 2003/02/20 02:56:40 dawes Exp $ */ +/* $XFree86: xc/programs/xfd/xfd.c,v 1.9 2003/04/19 23:49:27 herrb Exp $ */ #include #include @@ -127,7 +127,10 @@ static XtResource Resources[] = { static void usage(void) { - fprintf (stderr, "usage: %s [-options ...] -fn font\n\n", ProgramName); + fprintf (stderr, "usage: %s [-options ...] -fn font\n", ProgramName); +#ifdef XRENDER + fprintf (stderr, " %s [-options ...] -fa font\n", ProgramName); +#endif fprintf (stderr, "where options include:\n"); fprintf (stderr, " -display dpy X server to contact\n"); diff --git a/xfd.man b/xfd.man index f3a9f48..096e5f3 100644 --- a/xfd.man +++ b/xfd.man @@ -23,7 +23,7 @@ .\" other dealings in this Software without prior written authorization .\" from The Open Group. .\" -.\" $XFree86: xc/programs/xfd/xfd.man,v 1.8 2001/12/14 20:01:31 dawes Exp $ +.\" $XFree86: xc/programs/xfd/xfd.man,v 1.10 2003/04/21 20:42:49 dawes Exp $ .\" .TH XFD 1 __xorgversion__ .SH NAME @@ -31,6 +31,9 @@ xfd \- display all the characters in an X font .SH SYNOPSIS .B xfd [\-options ...] \fB\-fn\fP \fIfontname\fP +.PP +.B xfd +[\-options ...] \fB\-fa\fP \fIfontname\fP .SH DESCRIPTION The \fIxfd\fP utility creates a window containing the name of the font being displayed, a row of command buttons, several lines of text for displaying @@ -73,9 +76,14 @@ accepts all of the standard toolkit command line options along with the additional options listed below: .TP 8 .B \-fn \fIfont\fP -This option specifies the font to be displayed. This can also be set with +This option specifies the core X server side font to be displayed. +This can also be set with the FontGrid \fBfont\fP resource. A font must be specified. .TP 8 +.B \-fa \fIfont\fP +This option specifies a Xft font to be displayed. This can also be set with +the FontGrid \fBface\fP resource. A font pattern must be specified. +.TP 8 .B \-box This option indicates that a box should be displayed outlining the area that would be filled with background color by an ImageText request. @@ -180,7 +188,7 @@ character does not exist. The default is "no such character 0x%02x%02x (%u,%u) (%#o,%#o)". The arguments that will come after the format string are the same as for the \fBselectFormat\fP resource. .SH "SEE ALSO" -X(__miscmansuffix__), xlsfonts(1), xrdb(1), xfontsel(1), +X(__miscmansuffix__), xlsfonts(1), xrdb(1), xfontsel(1), fontconfig(3), .I "X Logical Font Description Conventions" .SH "BUGS" The program should skip over pages full of non-existent characters. -- cgit v1.2.3