Repository: iyannik0215/YaHei-Consolas-Hybrid-1.12
Branch: master
Commit: 1bede7a8f52f
Files: 2
Total size: 1.8 KB
Directory structure:
gitextract__acqvmf3/
├── README.md
└── install.sh
================================================
FILE CONTENTS
================================================
================================================
FILE: README.md
================================================
# 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中使用该字体了.
================================================
FILE: install.sh
================================================
#!/bin/sh
if [ ! $(command -v wget) ]; then
echo "please install wget"
exit 0
elif [ $UID -ne 0 ]; then
echo "You need to use root."
exit 0
else
wget -P /tmp/ https://github.com/yakumioto/YaHei-Consolas-Hybrid-1.12/raw/master/YaHei%20Consolas%20Hybrid%201.12.ttf
echo 'Truetype folder Creating...'
echo 'path:/usr/share/fonts/truetype/YaHei\ Consolas\ Hybrid'
mkdir -p /usr/share/fonts/truetype/YaHei\ Consolas\ Hybrid
echo 'Move font to truetype folder...'
mv /tmp/YaHei\ Consolas\ Hybrid\ 1.12.ttf /usr/share/fonts/truetype/YaHei\ Consolas\ Hybrid
echo 'Modifying font permissions...'
chmod 644 /usr/share/fonts/truetype/YaHei\ Consolas\ Hybrid/YaHei\ Consolas\ Hybrid\ 1.12.ttf
echo 'installing YaHei Consolas Hybrid font...'
fc-cache -fv
echo 'Complete!'
fi
gitextract__acqvmf3/ ├── README.md └── install.sh
Condensed preview — 2 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (2K chars).
[
{
"path": "README.md",
"chars": 1018,
"preview": "# YaHei Consolas Hybrid 1.12\n\na font for developers that correctly displays Asian characters when mixed with Latin\n\n个人最喜"
},
{
"path": "install.sh",
"chars": 806,
"preview": "#!/bin/sh\n\nif [ ! $(command -v wget) ]; then\n echo \"please install wget\"\n exit 0\nelif [ $UID -ne 0 ]; then"
}
]
About this extraction
This page contains the full source code of the iyannik0215/YaHei-Consolas-Hybrid-1.12 GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 2 files (1.8 KB), approximately 738 tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.