Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XListFontsWithInfo(3X11) — BSD/386 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XLoadFont(3X11)

XSetFontPath(3X11)



XListFonts(3X11)          XLIB FUNCTIONS         XListFonts(3X11)


NAME
       XListFonts, XFreeFontNames, XListFontsWithInfo, XFree-
       FontInfo - obtain or free font names and information

SYNTAX
       char **XListFonts(display, pattern, maxnames,
       actualcountreturn)
             Display *display;
             char *pattern;
             int maxnames;
             int *actualcountreturn;

       XFreeFontNames(list)
             char *list[];

       char **XListFontsWithInfo(display, pattern, maxnames,
       countreturn, inforeturn)
             Display *display;
             char *pattern;
             int maxnames;
             int *countreturn;
             XFontStruct **inforeturn;

       XFreeFontInfo(names, freeinfo, actualcount)
             char **names;
             XFontStruct *freeinfo;
             int actualcount;

ARGUMENTS
       actualcount
                 Specifies the actual number of matched font
                 names returned by XListFontsWithInfo.

       actualcountreturn
                 Returns the actual number of font names.

       countreturn
                 Returns the actual number of matched font names.

       display   Specifies the connection to the X server.

       inforeturn
                 Returns the font information.

       freeinfo Specifies the font information returned by
                 XListFontsWithInfo.

       list      Specifies the array of strings you want to free.

       maxnames  Specifies the maximum number of names to be
                 returned.

       names     Specifies the list of font names returned by
                 XListFontsWithInfo.



X Version 11                Release 5                           1




XListFonts(3X11)          XLIB FUNCTIONS         XListFonts(3X11)


       pattern   Specifies the null-terminated pattern string
                 that can contain wildcard characters.

DESCRIPTION
       The XListFonts function returns an array of available font
       names (as controlled by the font search path; see
       XSetFontPath) that match the string you passed to the pat-
       tern argument.  The pattern string can contain any charac-
       ters, but each asterisk (*) is a wildcard for any number
       of characters, and each question mark (?) is a wildcard
       for a single character.  If the pattern string is not in
       the Host Portable Character Encoding the result is imple-
       mentation dependent.  Use of uppercase or lowercase does
       not matter.  Each returned string is null-terminated.  If
       the data returned by the server is in the Latin Portable
       Character Encoding, then the returned strings are in the
       Host Portable Character Encoding.  Otherwise, the result
       is implementation dependent.  If there are no matching
       font names, XListFonts returns NULL.  The client should
       call XFreeFontNames when finished with the result to free
       the memory.

       The XFreeFontNames function frees the array and strings
       returned by XListFonts or XListFontsWithInfo.

       The XListFontsWithInfo function returns a list of font
       names that match the specified pattern and their associ-
       ated font information.  The list of names is limited to
       size specified by maxnames.  The information returned for
       each font is identical to what XLoadQueryFont would return
       except that the per-character metrics are not returned.
       The pattern string can contain any characters, but each
       asterisk (*) is a wildcard for any number of characters,
       and each question mark (?) is a wildcard for a single
       character.  If the pattern string is not in the Host
       Portable Character Encoding the result is implementation
       dependent.  Use of uppercase or lowercase does not matter.
       Each returned string is null-terminated.  If the data
       returned by the server is in the Latin Portable Character
       Encoding, then the returned strings are in the Host
       Portable Character Encoding.  Otherwise, the result is
       implementation dependent.  If there are no matching font
       names, XListFontsWithInfo returns NULL.

       To free only the allocated name array, the client should
       call XFreeFontNames.  To free both the name array and the
       font information array, or to free just the font informa-
       tion array, the client should call XFreeFontInfo.

       The XFreeFontInfo function frees the the font information
       array.  To free an XFontStruct structure without closing
       the font, call XFreeFontInfo with the names argument spec-
       ified as NULL.




X Version 11                Release 5                           2




XListFonts(3X11)          XLIB FUNCTIONS         XListFonts(3X11)


SEE ALSO
       XLoadFont(3X11), XSetFontPath(3X11)
       Xlib - C Language X Interface






















































X Version 11                Release 5                           3


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026