xlsfonts
瑞兹 发表于 2020-12-26 00:37浏览次数:
在类似 Unix 一样使用的操作系统上,xlsfonts命令显示X窗口系统可用的字体列表。
On Unix-like operating systems, the xlsfonts command displays a list of fonts available for the X Window System.
目录:
1 xlsfonts 运行系统环境
2 xlsfonts 描述
3 xlsfonts 语法
4 xlsfonts 例子
xlsfonts 运行系统环境
xlsfonts 描述
xlsfonts列出了与给定模式匹配的字体。通配符"="可用于匹配任何字符序列(包括无字符)和"?",以匹配任何单个字符。如果未给出模式,则假定 "*"。
必须引用"*和"?"字符,以防止它们被外壳扩展。
xlsfonts lists the fonts that match the given pattern. The wildcard character "*" may be used to match any sequence of characters (including none), and "?" to match any single character. If no pattern is given, "*" is assumed.
The "*" and "?" characters must be quoted to prevent them from being expanded by the shell.
xlsfonts 语法
xlsfonts [-display host:dpy] [-l] [-ll] [-lll] [-m] [-C] [-1] [-w width]
[-n columns] [-u] [-o] [-fn pattern]
选项
-displayhost:dpy
|
指定要联系的 X 服务器,其中主机是主机名,dpy是显示标识符。
|
- dhost:dpy
|
与显示主机相同:dpy。
|
- l
|
除了一行名称外,还列出了字体的一些属性。
|
- ll
|
除了 -l 输出之外,还列出了字体属性。
|
- l
|
除了-ll输出之外,还列出了字符指标。
|
- m
|
此选项指示长列表还应打印每种字体的最小和最大边界。
|
-C
|
此选项指示列表应使用多个列。这与-n 0 相同。
|
-1
|
此选项指示列表应使用单个列。这与-n 1 相同。
|
- w width
|
此选项指定在计算要打印的列数时应使用的字符宽度。默认值为79。
|
-n cloumns
|
此选项指定用于显示输出的列数。默认情况下,它将尝试将尽可能多的字体名称列放入由-w宽度指定的字符数中。
|
- u
|
此选项指示输出应未排序。
|
- o
|
此选项指示xlsfont 应执行OpenFont(如果适用,则为QueryFont)而不是ListFont。如果ListFonts 或 ListFontsWithInfo 无法列出已知字体(如某些缩放字体系统的情况),这非常有用。
|
-fn pattern
|
此选项指定要匹配的字体名称模式。
|
环境
DISPLAY
|
必须设置显示环境变量才能使默认主机和显示使用。
|
注意
运行[xlsfonts -l]可以绑住您的服务器很长一段时间。这对于单线程不可抢占的服务器来说,这真是一个错误,而不是xlsfonts本身。
xlsfonts [-display host:dpy] [-l] [-ll] [-lll] [-m] [-C] [-1] [-w width]
[-n columns] [-u] [-o] [-fn pattern]
Options
-display host:dpy
|
Specifies the X server to contact, where host is the hostname and dpy is the display identifier.
|
-d host:dpy
|
Same as -display host:dpy.
|
-l
|
Lists some attributes of the font on one line in addition to its name.
|
-ll
|
Lists font properties in addition to -l output.
|
-lll
|
Lists character metrics in addition to -ll output.
|
-m
|
This option indicates that long listings should also print the minimum and maximum bounds of each font.
|
-C
|
This option indicates that listings should use multiple columns. This is the same as -n 0.
|
-1
|
This option indicates that listings should use a single column. This is the same as -n 1.
|
-w width
|
This option specifies the width in characters that should be used in figuring out how many columns to print. The default is 79.
|
-n columns
|
This option specifies the number of columns to use in displaying the output. By default, it will attempt to fit as many columns of font names into the number of character specified by -w width.
|
-u
|
This option indicates that the output should be left unsorted.
|
-o
|
This option indicates that xlsfonts should do an OpenFont (and QueryFont, if appropriate) rather than a ListFonts. This is useful if ListFonts or ListFontsWithInfo fail to list a known font (as is the case with some scaled font systems).
|
-fn pattern
|
This option specifies the font name pattern to match.
|
Environment
DISPLAY
|
The DISPLAY environment variable must be set to get the default host and display to use.
|
Note
Running "xlsfonts -l" can tie up your server for a very long time. This is really a bug with single-threaded non-preemptable servers, not with xlsfonts itself.
xlsfonts 例子
xlsfonts
列出默认 X 服务器和显示的所有可用字体。
xlsfonts
Lists all fonts available to the default X server and display.
未知的网友