博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Using True Type Fonts in XTerm
阅读量:5095 次
发布时间:2019-06-13

本文共 1001 字,大约阅读时间需要 3 分钟。

I’ve not had to use TrueType fonts before as my desktop display resolution never warranted it.

Now with eyesight failing and much better monitors, I decided to give them a go.Fonts are globally managed by settings in

/etc/X11/app-defaults. However, TrueType fonts can be locally set using ~/.Xresources.

To browse the list of fonts use

fc-list :fontformat=TrueType -f "%{family}\n" | sort -u | less

Test a font by specifyng in the xterm command -fa option xterm -fa 'Luxi Mono' -fs 10 .

Where fa refers to the fonts face name, and fs, the font size. Once happy with your font, apply to your application in ~/.Xresources.

For example to apply for XTerm

! my customisations

XTerm*faceName: DejaVu Sans Mono

XTerm*faceSize: 11

The final step is to set these resource changes using xrdb

xrdb -merge .Xresources .

So, next time you invoke a plain xterm command you will be greeted with your new font.


 

FROM: http://community.linuxmint.com/tutorial/view/1021

转载于:https://www.cnblogs.com/maxc01/p/3268298.html

你可能感兴趣的文章
git 常用命令
查看>>
cassandra vs mongo (1)存储引擎
查看>>
Visual Studio基于CMake配置opencv1.0.0、opencv2.2
查看>>
Vue音乐项目笔记(三)
查看>>
遍历Map对象
查看>>
计算剪贴板里仿制的代码行数
查看>>
MySQL索引背后的数据结构及算法原理
查看>>
#Leetcode# 209. Minimum Size Subarray Sum
查看>>
C#语言-04.OOP基础
查看>>
1)session总结
查看>>
PHP深浅拷贝
查看>>
SDN第四次作业
查看>>
ActiveMQ(4) ActiveMQ JDBC 持久化 Mysql 数据库
查看>>
DM8168 DVRRDK软件框架研究
查看>>
django迁移数据库错误
查看>>
epoll学习01
查看>>
yii 跳转页面
查看>>
闭包问题
查看>>
C#一个FTP操作封装类FTPHelper
查看>>
Linux运维基础入门(二):网络基础知识梳理02
查看>>