书呆子字体是一个用大量字形(图标)为开发人员目标字体打补丁的项目,内涵3600多个图标,50多个补丁字体:Hack,Source Code Pro,更多。字形集合:字体、材质设计图标、Octicons等。具体地说,就是从流行的“图标字体”中添加大量额外的字形,例如Font Awesome ➶,Devicons ➶,Octicons ➶,以及others。
重要通知
- master分支文件路径为不被认为是稳定的。Verify your repository URI references
- 克隆此存储库是不推荐(due to Repo size)除非你将要成为contributing to development
目录
- 1 – Manual
- 2 – Release Archive Download
- 3 – Install Script
- 4 – Homebrew Fonts (macOS (OS X))
- 5 – Clone Repo
- 6 – Ad Hoc Curl Download
- 7 – Arch User Repository (AUR) (Arch Linux)
- 8 – Patch Your Own Font
其他信息
TL;DR
书呆子字体采用流行的编程字体,并添加了一堆字形。还有一个font patcher如果您所需的字体尚未打补丁,则可用。有关更多高级信息,请参阅wiki如果您正在寻找Vim插件,请参阅VimDevIcons ➶
各种字体下载选项
如果你
- Option 1.想要速战速决抓住一个单个字体从- patched-fonts/directory
- Option 2.我想下载一个字体系列变体包(粗体、斜体等)看见download an archive
- Option 3.想要自动化在中安装或使用脚本请参阅Install Script
- Option 4.是开着的MacOS并且想要使用自制酒看见Homebrew Fonts
- Option 5.想要完全控制然后请看cloning the repo
- Option 6.想要使用- curl命令或在以下位置使用脚本看见Ad Hoc Curl Download
- Option 7.是开着的Arch Linux并且想要使用AUR包看见Unofficial Arch User Repositories
- Option 8.想要修补您自己的字体,请参阅Font Patcher
功能
- 一个FontForge Python script修补任何字体的步骤
- 包括一个选项,用于创建等间距(固定间距、固定宽度)或双宽(非等宽)字形
- 有关更多详细信息,请参阅Font Patcher部分
 
- 51已经有了patched font families
- 完毕1,444,400修补字体的独特组合/变体(more details)
- 完毕2,824字形/图标组合(more details)
- 等间距(固定间距、固定宽度)或双宽(非等宽)每种字体的字形版本
- 这指的是Nerd字体字形本身,而不一定是整个字体
 
- 提供了开发人员/贡献者bash script要重新修补所有字体,请执行以下操作
字形集
🔍🔍现在,您可以在上轻松搜索字形NerdFonts.com通过Cheat Sheet
看见Wiki: Glyph Sets and Codepoints for more details
Shell中的图标名称
打补丁的字体
*RFN=保留字体名称
组合
- 完毕1,485,000修补字体的独特变体/组合(功率集):- 50修补的字体字样
- 719打补丁的字体系列
- 2,876“完整的”变体/组合
- '1,485,410'可能的变体/组合
- 
- 1,488,286计算的组合总数(2,876+1,428,110)
 
 
- 每种字体的组合是以下字体的任意组合Variations
变体
- 未指定标志(默认为仅SETI-UI+自定义和Devicons)
- 双倍(可变/比例)或单人(固定/等宽)宽度字形
- Font Awesome
- Font Awesome Extension
- Material Design Icons
- Weather
- GitHub Octicons
- Font Logos(前身为Font Linux)
- Powerline Extra Symbols
- IEC Power Symbols
- Pomicons
- Windows兼容性
字体安装
Option 1: Download and Install Manually
最佳选择速战速决获取特定的单个字体
下载特定的patched font随你选择
Option 2: Release Archive Download
如果您想要存档或完成字体系列变体(粗体、斜体等)
字体可以软件包的形式在latest release
Option 3: Install Script
如果您想要的话,最好的选择自动化安装或用于脚本
注意事项:仅适用于Linux和MacOS(OS X)注意事项:需要克隆到目前为止的回购
所有字体:
- 安装所有打补丁的字体(警告:这是大量的字体加起来很大)
./install.sh
单一字体:
- 安装您选择的单一字体
./install.sh <FontName>
./install.sh Hack
./install.sh HeavyData
Option 4: Homebrew Fonts
如果启用,则为最佳选项MacOS并且想要使用自制酒
所有字体均可通过Homebrew Cask Fonts在MacOS(OS X)上
brew tap homebrew/cask-fonts
brew install --cask font-hack-nerd-font
Option 5: Clone the Repo
最佳选择完全控制,全或最多字体,或者贡献走向发展
此存储库的克隆是不如果您只对有限的一组字体感兴趣,则不需要也不高效(主要是由于存储库的大小
但是,如果您确实要克隆存储库,请确保浅层克隆:
git clone --depth 1
Option 6: Ad Hoc Curl Download
选项,如果要使用
curl命令或用于脚本
Linux操作系统
mkdir -p ~/.local/share/fonts
cd ~/.local/share/fonts && curl -fLo "Droid Sans Mono for Powerline Nerd Font Complete.otf" https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/DroidSansMono/complete/Droid%20Sans%20Mono%20Nerd%20Font%20Complete.otf
注:不推荐使用的备用路径:~/.fonts
MacOS(OS X)
cd ~/Library/Fonts && curl -fLo "Droid Sans Mono for Powerline Nerd Font Complete.otf" https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/DroidSansMono/complete/Droid%20Sans%20Mono%20Nerd%20Font%20Complete.otf
Option 7: Unofficial Arch User Repository (AUR)
选项用于Arch Linux并且想要使用AUR包
以下字体可通过AUR packages在Arch Linux上:
- Nerd Fonts Complete (double-width)
- Nerd Fonts Complete (single-width) (out of date)
- Nerd Fonts DejaVu Complete
- Nerd Fonts Source Code Pro Complete
- Nerd Fonts Git (out of date)
- Nerd Fonts Fira Code
- Nerd Fonts Terminus
- Nerd Fonts Liberation Mono
- Nerd Fonts Go Mono
- Nerd Fonts Anonymous Pro
- Nerd Fonts Noto
- Nerd Fonts Inconsolata
Option 8: Patch Your Own Font
的选项打补丁你的自己的字体或完全自定义打补丁的字体
使用提供的Python命令行脚本从您自己的字体生成修补字体,以获得额外的新字形
请参见:Font Patcher供使用
- 如果需要,请使用此选项不想要使用其中一个fonts provided
- 您仍需要将生成的字体复制到系统上的正确字体目录
修补您自己选择的字体以与VimDevIcons ➶:
- 要求:Python 2(或Python 3),python-fontforge包(版本20141231或稍后,请参阅install instructions)
- OSX上的备用安装方法:brew install fontforge
- 使用Docker的替代方法:Docker Hub
- 用法:
./font-patcher PATH_TO_FONT
- 替代用法:使用脚本标志使用FontForge二进制文件执行补丁程序:
./fontforge -script font-patcher PATH_TO_FONT
- 使用Docker修补字体:
docker run -v /path/to/fonts:/in -v /path/for/output:/out nerdfonts/patcher [OPTIONS]
usage: font-patcher [-h] [-v] [-s] [-l] [-q] [-w] [-c] [--fontawesome]
                    [--fontawesomeextension] [--fontlinux] [--octicons]
                    [--powersymbols] [--pomicons] [--powerline]
                    [--powerlineextra] [--material] [--weather]
                    [--custom [CUSTOM]] [--postprocess [POSTPROCESS]]
                    [--removeligs] [--configfile [CONFIGFILE]]
                    [--progressbars | --no-progressbars] [--careful]
                    [-ext [EXTENSION]] [-out [OUTPUTDIR]]
                    font
Nerd Fonts Font Patcher: patches a given font with programming and development related glyphs
* Website: https://www.nerdfonts.com
* Version: 2.0.0
* Development Website: https://github.com/ryanoasis/nerd-fonts
* Changelog: https://github.com/ryanoasis/nerd-fonts/blob/master/changelog.md
positional arguments:
  font                  The path to the font to patch (e.g., Inconsolata.otf)
optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -s, --mono, --use-single-width-glyphs
                        Whether to generate the glyphs as single-width not double-width (default is double-width)
  -l, --adjust-line-height
                        Whether to adjust line heights (attempt to center powerline separators more evenly)
  -q, --quiet, --shutup
                        Do not generate verbose output
  -w, --windows         Limit the internal font name to 31 characters (for Windows compatibility)
  -c, --complete        Add all available Glyphs
  --fontawesome         Add Font Awesome Glyphs (http://fontawesome.io/)
  --fontawesomeextension
                        Add Font Awesome Extension Glyphs (https://andrelzgava.github.io/font-awesome-extension/)
  --fontlinux, --fontlogos
                        Add Font Linux and other open source Glyphs (https://github.com/Lukas-W/font-logos)
  --octicons            Add Octicons Glyphs (https://octicons.github.com)
  --powersymbols        Add IEC Power Symbols (https://unicodepowersymbol.com/)
  --pomicons            Add Pomicon Glyphs (https://github.com/gabrielelana/pomicons)
  --powerline           Add Powerline Glyphs
  --powerlineextra      Add Powerline Glyphs (https://github.com/ryanoasis/powerline-extra-symbols)
  --material, --materialdesignicons, --mdi
                        Add Material Design Icons (https://github.com/templarian/MaterialDesign)
  --weather, --weathericons
                        Add Weather Icons (https://github.com/erikflowers/weather-icons)
  --custom [CUSTOM]     Specify a custom symbol font. All new glyphs will be copied, with no scaling applied.
  --postprocess [POSTPROCESS]
                        Specify a Script for Post Processing
  --removeligs, --removeligatures
                        Removes ligatures specified in JSON configuration file
  --configfile [CONFIGFILE]
                        Specify a file path for JSON configuration file (see sample: src/config.sample.json)
  --progressbars        Show percentage completion progress bars per Glyph Set
  --no-progressbars     Don't show percentage completion progress bars per Glyph Set
  --careful             Do not overwrite existing glyphs if detected
  -ext [EXTENSION], --extension [EXTENSION]
                        Change font file type to create (e.g., ttf, otf)
  -out [OUTPUTDIR], --outputdir [OUTPUTDIR]
                        The directory to output the patched font file to
示例
./font-patcher Droid\ Sans\ Mono\ for\ Powerline.otf
./font-patcher Droid\ Sans\ Mono\ for\ Powerline.otf -s -q
./font-patcher Droid\ Sans\ Mono\ for\ Powerline.otf --use-single-width-glyphs --quiet
./font-patcher Droid\ Sans\ Mono\ for\ Powerline.otf -w
./font-patcher Droid\ Sans\ Mono\ for\ Powerline.otf --windows --quiet
./font-patcher Droid\ Sans\ Mono\ for\ Powerline.otf --windows --pomicons --quiet
./font-patcher Inconsolata.otf --fontawesome
./font-patcher Inconsolata.otf --fontawesome --octicons --pomicons
./font-patcher Inconsolata.otf
docker run --rm -v ~/myfont/patchme:/in -v ~/myfont/patched:/out nerdfonts/patcher
docker run --rm -v ~/Desktop/myfont/patchme:/in -v ~/Desktop/myfont/patched:/out nerdfonts/patcher --fontawesome
我得把它们都补上字体补丁!
- 供贡献者或开发者使用
- 重新打补丁全未打补丁的目录中的字体:
./gotta-patch-em-all-font-patcher\!.sh
- 可以选择将其限制为特定的字体名称模式:
./gotta-patch-em-all-font-patcher\!.sh Hermit
贡献
不稳定的文件路径
⚠️警告:文件路径可能会根据版本的不同而更改(特别是主修版本颠簸)
引用发布分支和不这个师傅分支,因为每个版本的路径都会更改
- 例如:
- ✅使用:https://github.com/ryanoasis/nerd-fonts/blob/0.9.0/patched-fonts/Hermit/Medium/complete/Hurmit%20Medium%20Nerd%20Font%20Complete.otf
- ❌而不是:https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/Hermit/Medium/complete/Hurmit%20Medium%20Nerd%20Font%20Complete.otf
 
- ✅使用:
要修补的其他好字体
- 由于许可证原因无法提供或共享的要修补的其他好字体的列表:
- Input Mono(许可证限制)
- 可能附带外部主机:)
 
- PragmataPro(不免费)
- Consolas(专有)
- Operator Mono(不免费)
- Dank Mono(不免费)
项目动机
更改日志
许可证
MIT©Ryan L McIntyre






