如何在Linux中安装字体以便xterm可以使用?
发布时间:2020-12-13 16:45:05 所属栏目:Linux 来源:网络整理
导读:我今天遇到了 a question,要求提供良好的Linux xterm字体,答案显示一个名为Terminus的答案.我一直在寻找一种新的终端字体,所以我 downloaded it(BTW,我正在运行Ubuntu Intrepid)并阅读自述文件: 1.1. Quick installation.The commands: $./configure [--pre
我今天遇到了
a question,要求提供良好的Linux xterm字体,答案显示一个名为Terminus的答案.我一直在寻找一种新的终端字体,所以我
downloaded it(BTW,我正在运行Ubuntu Intrepid)并阅读自述文件:
1.1. Quick installation. The commands: $./configure [--prefix=PREFIX] $make # make install compile and install the Linux console and X11 Window System fonts,and # make fontdir updates fonts.dir for X11 (if you don't know what fonts.dir is,execute the command). 1.2. Legend. The file names are structured as follows: ter-u<SIZE><STYLE>.bdf where <SIZE> is 12,14,16,20,24,28 or 32,and <STYLE> is n for normal (all sizes),b for bold (all sizes except 6x12) and v for EGA/VGA bold (8x14 and 8x16 only,makes use of the eight character matrix column). 所以我跑了: $./configure $make $sudo make install $sudo make fontdir …我重新启动X11只是为了确定,新的字体无处可寻: $xterm -font ter-u14n xterm: unable to open font "ter-u14n",trying "fixed".... 叹.回到自述文件.在这个文件的后面,我看到: 4. X11 Window System. 4.1. Installation. $./configure [--prefix=PREFIX | --x11dir=DIRECTORY] $make pcf # make install-pcf 好吧,我知道“xterm -font 8×16”有效,所以我运行“locate 8×16”并看到这个字体似乎存在于/usr/share / fonts / X11 / misc中,所以这似乎是一个很好的-x11dir到使用.所以我跑了: $./configure --x11dir=/usr/share/fonts/X11/misc $make pcf $make install-pcf $sudo make fontdir …我再次重新启动X11,甚至我的整台计算机都是好的措施,我甚至证实现在有一堆文件,比如/usr/share/fonts/X11/misc/ter-u14n.pcf.gz在我的系统上,但仍然: $xterm -font ter-u14n xterm: unable to open font "ter-u14n",trying "fixed".... 为了让这个字体与xterm一起工作,我必须执行什么神奇的咒语? 解决方法
Ubuntu有一个包:
apt-get install xfonts-terminus xfonts-terminus-oblique 请注意,这是在Universe存储库中,因此您可能必须将其添加到/etc/apt/sources.list. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |