Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yakumioto/YaHei-Consolas-Hybrid-1.12
YaHei Consolas Hybrid 字体
https://github.com/yakumioto/YaHei-Consolas-Hybrid-1.12
Last synced: 15 days ago
JSON representation
YaHei Consolas Hybrid 字体
- Host: GitHub
- URL: https://github.com/yakumioto/YaHei-Consolas-Hybrid-1.12
- Owner: yakumioto
- Created: 2016-02-23T04:06:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-09-23T07:45:10.000Z (about 4 years ago)
- Last Synced: 2024-10-15T19:03:23.882Z (27 days ago)
- Language: Shell
- Size: 8.54 MB
- Stars: 1,397
- Watchers: 27
- Forks: 267
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- stars - yakumioto/YaHei-Consolas-Hybrid-1.12
README
# YaHei Consolas Hybrid 1.12
a font for developers that correctly displays Asian characters when mixed with Latin
个人最喜欢的编程字体, 放到GitHub上方便以后自己下载, 使用.
[注]: 我不是 `YaHei Consolas Hybrid` 的作者,只是单纯的使用者. 所以改字体里面的缺陷我是不会的..
## 一键安装
```
wget -qO- https://raw.githubusercontent.com/yakumioto/YaHei-Consolas-Hybrid-1.12/master/install.sh | sudo sh
```## 安装
+ 下载这个字体.
```
git clone https://github.com/yakumioto/YaHei-Consolas-Hybrid-1.12
```
+ 在/usr/share/fonts/truetype/, 下建立一个新的目录 YaHei\ Consolas\ Hybrid
```
sudo 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中使用该字体了.