{
    "content": [
        {
            "type": "text",
            "text": "# xfontsel(1) (man)\n\n**Summary:** xfontsel - point and click selection of X11 font names\n\n## See Also\n\n- xrdb(1)\n- xfd(1)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNTAX** (3 lines)\n- **DESCRIPTION** (28 lines)\n- **INTERACTIONS** (24 lines)\n- **RESOURCES** (56 lines)\n- **FILES** (2 lines)\n- **SEE ALSO** (2 lines)\n- **BUGS** (16 lines)\n- **COPYRIGHT** (4 lines)\n- **AUTHOR** (7 lines)\n\n## Full Content\n\n### NAME\n\nxfontsel - point and click selection of X11 font names\n\n### SYNTAX\n\nxfontsel [-toolkitoption ...]  [-pattern fontname] [-print] [-sample text] [-sample16 text16]\n[-sampleUCS textUCS] [-scaled]\n\n### DESCRIPTION\n\nThe xfontsel application provides a simple way to display the fonts known to your  X  server,\nexamine samples of each, and retrieve the X Logical Font Description (\"XLFD\") full name for a\nfont.\n\nIf -pattern is not specified, all fonts with XLFD 14-part names will be selectable.  To  work\nwith  only a subset of the fonts, specify -pattern followed by a partially or fully qualified\nfont name; e.g., ``-pattern *medium*'' will select that subset of  fonts  which  contain  the\nstring  ``medium''  somewhere in their font name.  Be careful about escaping wildcard charac‐\nters in your shell.\n\nIf -print is specified on the command line the selected font specifier  will  be  written  to\nstandard  output  when the quit button is activated.  Regardless of whether or not -print was\nspecified, the font specifier may be made the PRIMARY (text) selection by activating the  se‐\nlect button.\n\nThe  -sample  option specifies the sample text to be used to display the selected font if the\nfont is linearly indexed, overriding the default.\n\nThe -sample16 option specifies the sample text to be used to display the selected font if the\nfont is matrix encoded, overriding the default.\n\nThe  -sampleUCS option specifies the sample text encoded in the UTF-8 form to be used to dis‐\nplay the selected font if the font has a CHARSETREGISTRY of  ISO10646,  overriding  the  de‐\nfault.\n\nThe  -scaled  option  enables  the ability to select scaled fonts at arbitrary pixel or point\nsizes.\n\n### INTERACTIONS\n\nClicking any pointer button in one of the XLFD field names will pop up a  menu  of  the  cur‐\nrently-known  possibilities  for  that field.  If previous choices of other fields were made,\nonly values for fonts which matched the previously selected fields  will  be  selectable;  to\nmake other values selectable, you must deselect some other field(s) by choosing the ``*'' en‐\ntry in that field.  Unselectable values may be omitted from the menu entirely as a configura‐\ntion  option;  see  the  ShowUnselectable  resource, below.  Whenever any change is made to a\nfield value, xfontsel will assert ownership of the PRIMARYFONT  selection.   Other  applica‐\ntions (see, e.g., xterm) may then retrieve the selected font specification.\n\nScalable  fonts come back from the server with zero for the pixel size, point size, and aver‐\nage width fields.  Selecting a font name with a zero in these positions results in an  imple‐\nmentation-dependent  size.   Any  pixel  or point size can be selected to scale the font to a\nparticular size.  Any average width can be selected to anamorphically  scale  the  font  (al‐\nthough you may find this challenging given the size of the average width menu).\n\nClicking  the left pointer button in the select widget will cause the currently selected font\nname to become the PRIMARY text selection as well as the PRIMARYFONT selection.   This  then\nallows  you  to  paste  the  string into other applications.  The select button remains high‐\nlighted to remind you of this fact, and de-highlights when some other application  takes  the\nPRIMARY  selection  away.   The select widget is a toggle; pressing it when it is highlighted\nwill cause xfontsel to release the selection ownership and de-highlight the widget.  Activat‐\ning the select widget twice is the only way to cause xfontsel to release the PRIMARYFONT se‐\nlection.\n\n### RESOURCES\n\nThe application class is XFontSel.  Most of the user-interface is configured in  the  app-de‐\nfaults file; if this file is missing a warning message will be printed to standard output and\nthe resulting window will be nearly incomprehensible.\n\nMost of the significant parts of the widget  hierarchy  are  documented  in  /etc/X11/app-de‐\nfaults/XFontSel,\n\nApplication specific resources:\n\ncursor (class Cursor)\nSpecifies the cursor for the application window.\n\npattern (class Pattern)\nSpecifies  the  font name pattern for selecting a subset of available fonts.  Equiva‐\nlent to the -pattern option.  Most useful patterns will contain at  least  one  field\ndelimiter; e.g. ``*-m-*'' for monospaced fonts.\n\npixelSizeList (class PixelSizeList)\nSpecifies a list of pixel sizes to add to the pixel size menu, so that scalable fonts\ncan be selected at those pixel sizes.  The default pixelSizeList contains 7, 30,  40,\n50, and 60.\n\npointSizeList (class PointSizeList)\nSpecifies  a  list  of point sizes (in units of tenths of points) to add to the point\nsize menu, so that scalable fonts can be selected at those point sizes.  The  default\npointSizeList contains 250, 300, 350, and 400.\n\nprintOnQuit (class PrintOnQuit)\nIf  True the currently selected font name is printed to standard output when the quit\nbutton is activated.  Equivalent to the -print option.\n\nsampleText (class Text)\nThe sample 1-byte text to use for linearly indexed fonts.  Each glyph index is a sin‐\ngle byte, with newline separating lines.\n\nsampleText16 (class Text16)\nThe  sample  2-byte  text  to  use for matrix-encoded fonts.  Each glyph index is two\nbytes, with a 1-byte newline separating lines.\n\nscaledFonts (class ScaledFonts)\nIf True then selection of arbitrary pixel and point sizes for scalable fonts  is  en‐\nabled.\n\nWidget specific resources:\n\nshowUnselectable (class ShowUnselectable)\nSpecifies,  for each field menu, whether or not to show values that are not currently\nselectable, based upon previous field selections.  If shown, the unselectable  values\nare  clearly  identified  as such and do not highlight when the pointer is moved down\nthe menu.  The full name of this  resource  is  fieldN.menu.options.showUnselectable,\nclass  MenuButton.SimpleMenu.Options.ShowUnselectable;  where  N is replaced with the\nfield number (starting with the left-most field numbered 0).  The default is True for\nall  but  field  11 (average width of characters in font) and False for field 11.  If\nyou never want to see unselectable entries, '*menu.options.showUnselectable:False' is\na reasonable thing to specify in a resource file.\n\n### FILES\n\n$XFILESEARCHPATH/XFontSel\n\n### SEE ALSO\n\nxrdb(1), xfd(1)\n\n### BUGS\n\nSufficiently ambiguous patterns can be misinterpreted and lead to an initial selection string\nwhich may not correspond to what the user intended and which may  cause  the  initial  sample\ntext  output  to fail to match the proffered string.  Selecting any new field value will cor‐\nrect the sample output, though possibly resulting in no matching font.\n\nShould be able to return a FONT for the PRIMARY selection, not just a STRING.\n\nAny change in a field value will cause xfontsel to assert ownership of the  PRIMARYFONT  se‐\nlection.  Perhaps this should be parameterized.\n\nWhen  running  on  a slow machine, it is possible for the user to request a field menu before\nthe font names have been completely parsed.  An error message indicating a  missing  menu  is\nprinted to stderr but otherwise nothing bad (or good) happens.\n\nThe average-width menu is too large to be useful.\n\n### COPYRIGHT\n\nCopyright 1989, 1991,  X Consortium\n\nSee X(7) for a full statement of rights and permissions.\n\n### AUTHOR\n\nRalph R. Swick, Digital Equipment Corporation/MIT Project Athena\n\nMark Leisher <mleisher@crl.nmsu.edu> added the support for the UTF-8 sample text.\n\n\n\nX Version 11                               xfontsel 1.0.6                                XFONTSEL(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "xfontsel",
        "section": "1",
        "mode": "man",
        "summary": "xfontsel - point and click selection of X11 font names",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "xrdb",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/xrdb/1/json"
            },
            {
                "name": "xfd",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/xfd/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNTAX",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 28,
                "subsections": []
            },
            {
                "name": "INTERACTIONS",
                "lines": 24,
                "subsections": []
            },
            {
                "name": "RESOURCES",
                "lines": 56,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 16,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 7,
                "subsections": []
            }
        ]
    }
}