标签归档:patcher

Nerd-fonts 标志性的字体聚合器、集合和补丁程序

书呆子字体是一个用大量字形(图标)为开发人员目标字体打补丁的项目,内涵3600多个图标,50多个补丁字体:Hack,Source Code Pro,更多。字形集合:字体、材质设计图标、Octicons等。具体地说,就是从流行的“图标字体”中添加大量额外的字形,例如Font Awesome ➶Devicons ➶Octicons ➶,以及others。

重要通知

目录

TL;DR

Installation Options

Features

Developer / Contributor

Project Motivation

其他信息

TL;DR

书呆子字体采用流行的编程字体,并添加了一堆字形。还有一个font patcher如果您所需的字体尚未打补丁,则可用。有关更多高级信息,请参阅wiki如果您正在寻找Vim插件,请参阅VimDevIcons ➶

各种字体下载选项

如果你

功能

字形集

🔍🔍现在,您可以在上轻松搜索字形NerdFonts.com通过Cheat Sheet

看见Wiki: Glyph Sets and Codepoints for more details

Shell中的图标名称

看见Wiki: Icon names in shell

打补丁的字体

字体名称 字体名称和存储库 *RFN EM大小 状态
3270 Nerd Font 3270 不是的 1000个
Agave Agave 不是的 2048年
Anonymice Nerd Font Anonymous Pro 不是的 2048年
Arimo Arimo 不是的 2048年
Aurulent Sans Mono Nerd Font 不是的 1000个
BigBlueTerminal 不是的 1200
Bitstream Vera Sans Mono Nerd Font 不是的 2048年
Blex* IBM Plex Mono 1000个
Caskaydia Cove Nerd Font* Cascadia Code 2048年
Code New Roman Nerd Font 不是的 2048年
Cousine Nerd Font Cousine 不是的 1000个
DaddyTimeMono DaddyTimeMono 不是的 1024
DejaVu Sans Mono Nerd Font 不是的 2048年
Droid Sans Mono Nerd Font 不是的 2048年
Fantasque Sans Nerd Font Fantasque Sans 不是的 2048年
Fira Code Nerd Font Fira Code 不是的 1000个
Fira Mono Nerd Font Fira 不是的 1000个
Go Mono Nerd Font Go-Mono 不是的 1000个
Gohu Nerd Font Gohu TTFGohu 不是的 1000个
Hack Nerd Font Hack 不是的 2048年
Hasklug Nerd Font* Hasklig 1000个
Heavy Data Mono Nerd Font 不是的 2048年
Hurmit Nerd Font 不是的 1000个
iM-Writing* iA-Writer 1000个
Inconsolata Nerd Font 不是的 1000个
Inconsolata Go Nerd Font 不是的 1000个
Inconsolata LGC Nerd Font 不是的 1000个
Iosevka Nerd Font Iosevka 不是的 1000个 #83
JetBrains Mono JetBrains Mono 不是的 1000个
Lekton Nerd Font 不是的 1000个
Literation Mono Nerd Font* Liberation 2048年
Lilex Nerd Font Lilex 不是的 2000年
Meslo Nerd Font 不是的 2048年
Monofur Nerd Font 不是的 2400
Monoid Nerd Font 不是的 1536
Mononoki Nerd Font Mononoki 不是的 1024
M+ (MPlus) Nerd Font 不是的 1000个
Noto 不是的 1000个
OpenDyslexic 不是的 1000个
Overpass 不是的 1000个
ProFont (Windows tweaked) Nerd Font 不是的 1200
ProFont (x11) Nerd Font 不是的 1000个
ProggyClean Nerd Font 不是的 2048年 不完美
Roboto Mono 不是的 2048年
Sauce Code Nerd Font Source 1000个
Shure Tech Mono Nerd Font* Share Tech Mono 1000个
Space Mono Nerd Font Space Mono 不是的 1000个
Terminess Nerd Font* Terminus Font 1000个
Tinos 不是的 2048年
Ubuntu Nerd Font 不是的 1000个
Ubuntu Mono Nerd Font 不是的 1000个
Victor Mono Victor Mono 不是的 1000个

*RFN=保留字体名称

组合

  • 完毕1,485,000修补字体的独特变体/组合(功率集):
    • 50修补的字体字样
    • 719打补丁的字体系列
    • 2,876“完整的”变体/组合
    • '1,485,410'可能的变体/组合
      • 1,488,286计算的组合总数(2,876+1,428,110)
  • 每种字体的组合是以下字体的任意组合Variations

变体

字体安装

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上:

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

贡献

看见contributing.md

不稳定的文件路径

⚠️警告:文件路径可能会根据版本的不同而更改(特别是主修版本颠簸)

引用发布分支和这个师傅分支,因为每个版本的路径都会更改

  • 例如:
    • ✅使用: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

要修补的其他好字体

项目动机

看见Wiki: Project Purpose

更改日志

看见changelog.md

许可证

MIT©Ryan L McIntyre