Ubuntu 字体设置:使用Windows 字体
来源:互联网 发布:怎样修改网卡mac地址 编辑:程序博客网 时间:2024/05/24 03:02
Ubuntu 字体设置:使用Windows 字体
Ubuntu 字体设置:使用Windows 字体
基础知识
Sans-serif=无衬线体=黑体:并不是具体一款字体,而是一类字体,选择它其实等于选择这类字体中优先级最高的那款字体。
Serif=衬线体=白体:同上
Monospace=等宽字体,意思是字符宽度相同:同上
点阵字体=位图字体
无衬线体更适合电脑屏幕阅读,衬线体适合打印。——因为衬线可以使得人视线平齐于一行。也就是说不会读破行。
中文显示时有不同的方式,一方面因为中文本身拥有的横和同高度就可以导致这种平齐。行距对中文更重要。
1. 安装字体
sudo apt-get install ttf-mscorefonts-installer #微软字体
sudo apt-get install xfonts-wqy #文泉驿-点阵宋体
cd ~
wget http://www.stchman.com/tools/MS_fonts/tahoma.zip #Tahoma 字体
sudo unzip -d /usr/share/fonts/truetype/msttcorefonts ~/tahoma.zip
sudo fc-cache -f -v
rm -f ~/tahoma.zip
fc-cache -f -s -v #刷新字体缓存
2. 进入 “Advanced settings" 设置(如果没有安装,执行 sudo apt-get install gnome-tweak-tool)
如下设置:
3. 配置:
注意使用文泉驿的视觉习惯工具把网页上的英文和中文字体都调整清晰, 点 Create, 按说明保存好。
本人调的是 Tahoma 第一位,wenquanyi bitmap 第二位, 这样英文和中文都没问题。
Linux字体
字体文件存放路径
/usr/share/fonts/ #系统字体,需要root权限才能操作
~/.fonts #用户字体,随便怎么搞,推荐
配置文件路径
/etc/fonts/fonts.conf #系统配置文件,需要root权限才能操作,对需要输入root密码的程序有效
~/.fonts.conf #用户配置文件,随便怎么搞,只对当前用户运行的程序有效
命令
fc-cache -fv #通常复制字体进~/.fonts就会自动刷新字体,如果没有,用这个命令,如果复制进的是/usr/share/fonts/,用sudo fc-cache -fv
fc-match sans-serif #抓取当前用户sans-serif类字体优先级最高的那款字体
fc-match serif #抓取当前用户serif类字体优先级最高的那款字体
fc-match monospace #抓取当前用户monospace类字体优先级最高的那款字体
4. 上一步配置对 Firefox 和 Thunderbird 无效, 再设置 ~/.fonts.conf, 在 <fontconfig> 中加入:
<match target="font">
<edit mode="assign" name="autohint">
<bool>false</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hintstyle">
<const>hintfull</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="antialias">
<bool>false</bool>
</edit>
</match>
<!-- 大字体的时候启用抗锯齿 -->
<match target="font" >
<test name="size" qual="any" compare="more">
<double>12</double>
</test>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
</match>
<match target="font" >
<test name="pixelsize" qual="any" compare="more">
<double>16</double>
</test>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
</match>
5. 登出 或 重启系统 就可看到完整的效果(由于图片受到压缩,请在图片上点右键,在新窗口中查看)
- Ubuntu 字体设置:使用Windows 字体
- ubuntu使用windows字体
- ubuntu 使用windows字体
- Ubuntu使用Windows字体
- ubuntu 字体设置像Windows 字体
- ubuntu中安装windows字体,设置myeclpse字体和windows下字体一样
- Ubuntu 安装、设置字体
- ubuntu NetBeans字体设置
- Ubuntu 系统字体设置
- uBuntu wine字体设置
- Ubuntu 字体设置
- ubuntu终端字体设置
- Ubuntu 14.04 字体设置
- Ubuntu emacs 字体设置
- [Ubuntu]安装windows字体
- ubuntu添加windows字体
- Ubuntu安装windows字体
- ubuntu安装windows 字体
- installous下载ipa目录
- org.springframework.web.context.ContextLoaderListener
- leetcode--Construct Binary Tree from Inorder and Postorder Traversal
- Super Prime
- 【iOS开发-网络】两种常用的方法解析XML数据
- Ubuntu 字体设置:使用Windows 字体
- 黑马程序员————基本数据流、内存操作流、打印流、标准输入输出流、序列化、properties类
- mysql命令简述
- 理解JavaScript中的arguments,callee,caller,apply
- TRY THE MUSICAL PLAYER
- 嵌入式Linux系统启动过程
- 随机梯度下降(Stochastic gradient descent)和 批量梯度下降(Batch gradient descent )的公式对比、实现对比
- AWSome Day(上海站)参会记录
- Call to localhost/127.0.0.1:9000 failed on connection exception:java.net.ConnectException