ubuntu安装苹果Windows以及微软雅黑consolas字体
2018-01-30 00:03
169 查看
ubuntu安装苹果Windows以及微软雅黑consolas字体
ubuntu安装苹果字体
wget http://drive.noobslab.com/data/Mac/macfonts.zip -O mac-fonts.zip sudo unzip mac-fonts.zip -d /usr/share/fonts rm mac-fonts.zip sudo fc-cache -f -v
ubuntu安装Windows字体
sudo apt-get install ttf-mscorefonts-installer sudo apt-get --reinstall install ttf-mscorefonts-installer sudo fc-cache -f -v
ubuntu安装YaHei-Consolas-Hybrid
下载这个字体.git clone https://github.com/yakumioto/YaHei-Consolas-Hybrid-1.12[/code]
在/usr/share/fonts/truetype/, 下建立一个新的目录 YaHei\ Consolas\ Hybridsudo mkdir -p /usr/share/fonts/truetype/YaHei\ Consolas\ Hybrid
将YaHei Consolas Hybrid 1.12.ttf 复制到刚才建立的文件夹里.sudo cp YaHei\ Consolas\ Hybrid\ 1.12.ttf /usr/share/fonts/truetype/YaHei\ Consolas\ Hybrid
修改字体文件的权限.cd /usr/share/fonts/truetype/YaHei\ Consolas\ Hybrid sudo chmod 644 YaHei\ Consolas\ Hybrid\ 1.12.ttf
开始安装字体.sudo mkfontscale
创建字体的fonts.scale文件,它用来控制字体旋转缩放sudo mkfontdir
创建字体的fonts.dir文件,它用来控制字体粗斜体产生sudo fc-cache -fv
建立字体缓存信息,也就是让系统认识该字体
之后就可以在 IDE中使用该字体了.
参考
https://github.com/yakumioto/YaHei-Consolas-Hybrid-1.12
相关文章推荐
- ubuntu安装苹果Windows以及微软雅黑consolas字体
- Ubuntu安装texlive2012以及xelatex下使用Windows自带字体
- ubuntu linux系统中安装mysql以及windows安装配置sqlyog
- Ubuntu14.04安装Windows上的中文字体
- Ubuntu 16.04 安装QQ以及VirtualBox安装windows和qq
- ubuntu下安装windows下的字体
- Debian/Ubuntu 下安装windows字体
- Ubuntu安装Microsoft Windows Fonts微软字体库
- 在 Ubuntu 18.04 LTS 上安装 Microsoft Windows 字体
- Ubuntu 8.04字体美化之安装苹果丽黑字体
- window(win7)+linux(ubuntu)双系统的安装以及windows重装后的引导修复问题
- Ubuntu 12.04 LTS 中安装 windows 字体
- Ubuntu16.04 安装 “宋体,微软雅黑,Consolas雅黑混合版编程字体” 等 Windows 7 下的字体
- u盘启动安装ubuntu与windows双系统过程记录以及可能出现的问题提示
- ubuntu下安装windows字体
- Ubuntu 字体美化之安装苹果丽黑字体 LiHei
- 安装windows字体库到ubuntu
- 在虚拟机上安装Ubuntu以及在Windows下配置PHP环境
- ubuntu 安装 windows 字体 美化
- Ubuntu 12.04 LTS安装Windows字体