chkfontpath ttmkfdir fc-cache -v -f

CHKFONTPATH(8) Red Hat, Inc.

NAME
   chkfontpath - simple interface for adding, removing, and listing directories in the X font server's path
   专用于添加、删除和列出x-server中的字体路径的命令。

SYNOPSIS
   chkfontpath [-lqfh] [-a name of directory to add] [-r name of directory to remove] [pathName]

DESCRIPTION
   chkfontpath provides a simple method of configuring the directories contained in the X font server's path.As of Red Hat 6.0, all fonts in X are served  via  this separate font server process, not through the main X server process.  This speeds up font rendering, and also  allows use of font servers which are not running on the local host.
   所有X中的字体都是通过这个独立的进程服务的,而非X server主进程。
   chkfontpath  is mainly used by rpm in its %post and %postun sections to add and remove new directories to the server's config file at installation and de-installation time of packages containing fonts.
   在rpm包安装或者卸载程序时,chkfontpath经常被调用以对字体进行调整。

   -a, --add=name of directory to add
   -r, --remove=name of directory to remove
   -l, --list
   -q, --quiet,means don't  display any output to the screen, even
   when there is an error during operation.
   强制即使有错也不要在输出中报。
   -f, --first,means Requires usage of the add command; puts the specified  directory first in the font path, rather than last.
   只在添加的时候用,保证添加的目录排在第一。
   -h, --help
   
   When  directories  are  added to the path, some sanity checking is performed to make sure you are not adding a  directory  without  the  file fonts.dir contained in it, which the server needs to be able to render fonts properly.  When a path is succesfully added or removed,  the  xfs process is restarted if it is currently running.
   用chkfontpath添加时,系统会检查目录中是否有合适的fonts.dir文件。当添加或删除目录后,chkfontpath进程都会重启,如果它正在运行的话。

RETURN CODES
   chkfontpath returns 0 on success, or 1 on error.
   成功时返回0,失败时返回1。

FILES
   /etc/X11/fs/config Configuration file for the X font server (xfs).
  对应文件/etc/X11/fs/config

SEE ALSO
    xfs(1),fslsfonts(1)

AUTHOR
    Written by Preston Brown <pbrown@redhat.com>

REPORTING BUGS
    Report bugs to <http://bugzilla.redhat.com>.

COPYRIGHT
    Copyright (C) 1999-2001 Red Hat, Inc. All rights reserved.
    This  is  free  software; see the source for copying conditions.
    There is NO warranty; not even for  MERCHANTIBILITY  or  FITNESS
FOR A PARTICULAR PURPOSE.

4th Berkeley Distribution Thu Jan 18 2001

 

ttmkfdir格式为
ttmkfdir -d 字体所在目录 -o 字体所在目录/fonts.scale

这个命令的作用是搜索目录中任何的字体信息,汇总生成fonts.scale文档。

也能够在字体目录中运行
ttmkfdir>fonts.dir命令

这样就生成了fonts.scale和fonts.dir两个文档,但是fonts.dir是空的。



fc-cache -v -f  系统一个个检查chkfontpath -l 列表中列出的目录,列出检查其中能够用的字体的情况。

fc-cache 目录名
用于刷新内存中字体缓存,这样无需重启机器,新的字体就能够在系统中生效了。

 

 

怎么没讲mkfontscale和mkfontdir????????

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值