Linux command
xfontsel 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Launch font selector
xfontsel
Start with font pattern filter
xfontsel -pattern "[*medium*]"
Print selected font to stdout on quit
xfontsel -print
Display custom sample text
xfontsel -sample "[The quick brown fox]"
Show scaled fonts
xfontsel -scaled
说明
xfontsel provides an interactive GUI for browsing and selecting X11 core fonts using XLFD (X Logical Font Description) names. It displays dropdown menus for each component of the 14-part XLFD font name. Clicking on a field name shows available options filtered by previous selections. The asterisk (*) acts as a wildcard. A preview of the selected font is displayed, and the full XLFD name can be copied to the clipboard. The selected font name becomes the PRIMARY text selection and PRIMARY_FONT selection, allowing paste into terminal emulators and other applications.
参数
- -pattern _fontname_
- Filter fonts matching pattern.
- Print selected font name to stdout on quit.
- -sample _text_
- Custom sample text for preview.
- -sample16 _text_
- Sample text for 16-bit fonts.
- -sampleUCS _text_
- Sample text for UCS fonts.
- -scaled
- Include scaled fonts in selection.
- -noscaled
- Exclude scaled fonts from selection.
- -display _name_
- X display to use.
FAQ
What is the xfontsel command used for?
xfontsel provides an interactive GUI for browsing and selecting X11 core fonts using XLFD (X Logical Font Description) names. It displays dropdown menus for each component of the 14-part XLFD font name. Clicking on a field name shows available options filtered by previous selections. The asterisk (*) acts as a wildcard. A preview of the selected font is displayed, and the full XLFD name can be copied to the clipboard. The selected font name becomes the PRIMARY text selection and PRIMARY_FONT selection, allowing paste into terminal emulators and other applications.
How do I run a basic xfontsel example?
Run `xfontsel` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -pattern _fontname_ do in xfontsel?
Filter fonts matching pattern.