fonts README

The project's README from github.com/powerline/fonts. As one markdown file: README.md.

Powerline fonts

This repository contains pre-patched and adjusted fonts for usage with the Powerline <https://github.com/powerline/powerline>_ statusline plugin.

Installation

Run ./install.sh to install all Powerline Fonts or see the documentation_ for details.

.. _documentation: https://powerline.readthedocs.org/en/latest/installation/linux.html#fonts-installation

Quick installation

If you are running a Debian or Ubuntu based Linux distribution, there should be a package available to install the Powerline Fonts with the following command: :: sudo apt-get install fonts-powerline

For fedora (tested on 28) or redhat based Linux distribution, there should also be a package available to install with the following command: :: sudo dnf install powerline-fonts On other environments, you can copy and paste these commands to your terminal. Comments are fine too. :: # clone git clone https://github.com/powerline/fonts.git --depth=1 # install cd fonts ./install.sh # clean-up a bit cd .. rm -rf fonts

Uninstall

Run ./uninstall.sh to uninstall all Powerline Fonts. You can also copy the quick installation commands changing only the line ./install.sh to ./uninstall.sh.

In both cases, please make sure you are working with the exact same version of Powerline fonts you had checked out while installing.

Font Families

======================================= ========================= ==================================== Powerline Font Family Formerly Known As License ======================================= ========================= ==================================== 3270 3270 BSD/CCAS 3.0 Anonymice Powerline Anonymous Pro SIL Open Font License, Version 1.1 Arimo Powerline Arimo Apache License, Version 2.0 Cousine Powerline Cousine Apache License, Version 2.0 CPMono_v07 CPMono_v07 Attribution 3.0 Germany (CC BY 3.0 DE) D2Coding for Powerline D2Coding SIL Open Font License, Version 1.1 DejaVu Sans Mono for Powerline DejaVu Sans Mono DejaVu Fonts License, Version 1.0 Droid Sans Mono for Powerline Droid Sans Mono Apache License, Version 2.0 Droid Sans Mono Dotted for Powerline Droid Sans Mono Dotted Apache License, Version 2.0 Droid Sans Mono Slashed for Powerline Droid Sans Mono Slashed Apache License, Version 2.0 Fira Mono for Powerline Fira Mono SIL OPEN FONT LICENSE Version 1.1 Go Mono for Powerline Go Mono Go's License Hack Hack SIL OFL, v1.1 + Bitstream License Inconsolata for Powerline Inconsolata SIL Open Font License, Version 1.0 Inconsolata-dz for Powerline Inconsolata-dz SIL Open Font License, Version 1.0 Inconsolata-g for Powerline Inconsolata-g SIL Open Font License, Version 1.0 Input Mono Input Mono Input’s license <http://input.fontbureau.com/license/>_ Liberation Mono Powerline Liberation Mono SIL Open Font License, Version 1.1 ProFontWindows ProFont for Powerline MIT License Meslo for Powerline Meslo Apache License, Version 2.0 Source Code Pro for Powerline Source Code Pro SIL Open Font License, Version 1.1 Meslo Dotted for Powerline Meslo Dotted Apache License, Version 2.0 Meslo Slashed for Powerline Meslo Dotted Apache License, Version 2.0 Monofur for Powerline Monofur Freeware Noto Mono for Powerline Noto Mono SIL Open Font License, Version 1.1 Roboto Mono for Powerline Roboto Mono Apache License, Version 2.0 Symbol Neu Powerline Symbol Neu Apache License, Version 2.0 Terminess Powerline Terminus SIL Open Font License, Version 1.1 Tinos Powerline Tinos Apache License, Version 2.0 Ubuntu Mono derivative Powerline Ubuntu Mono Ubuntu Font License, Version 1.0 Space Mono for Powerline Space Mono SIL Open Font License, Version 1.1 ======================================= ========================= ====================================

iTerm2 users need to set both the Regular font and the Non-ASCII Font in "iTerm > Preferences > Profiles > Text" to use a patched font (per this issue__).

__ https://github.com/Lokaltog/powerline-fonts/issues/44

Fontconfig

In some distributions, Terminess Powerline is ignored by default and must be explicitly allowed. A fontconfig file is provided which enables it. Copy this file <https://github.com/powerline/fonts/blob/master/fontconfig/50-enable-terminess-powerline.conf>_ from the fontconfig directory to your home folder under ~/.config/fontconfig/conf.d (create it if it doesn't exist) and re-run fc-cache -vf.

fonts (powerline/fonts)

Searching Database…

26.3K ·GitHub
这是什么?一组预先打好补丁的字体(已添加 Powerline 符号),用于配合 Powerline 的 vim/shell 状态栏插件使用,省去你自己给字体打补丁的麻烦。
这是字体还是插件?它只是字体文件(TTF/OTF)加上安装脚本;Powerline 本身(状态栏插件)是一个独立的项目。
我该怎么安装这些字体?克隆仓库后运行 './install.sh',或从子文件夹中单独安装某个字体,然后在终端的配置文件或字体设置中选择打过补丁的字体(例如 'Terminess Powerline')。
除了克隆仓库,还需要别的东西吗?不需要构建工具;只需 git 和一个能运行安装脚本的 shell。在某些 Linux 发行版上,你还需要用 fontconfig 注册字体。
只装打过补丁的字体就够了吗,还是还有额外步骤?在某些发行版上,默认会忽略 Terminess Powerline 字体,必须通过所提供的 fontconfig 文件明确允许它,然后再运行 'fc-cache -vf' 刷新字体缓存。
这在 Linux 和 macOS 终端上都能用吗?能。仓库中同时包含 Linux(通过 fontconfig)和 macOS 终端配置文件的安装与设置说明。
什么是 Powerline,为什么它需要特殊字体?Powerline 是一个状态栏插件(适用于 vim、tmux、shell),会显示特殊的箭头和分隔符图形;普通字体不包含这些字形,所以你需要一个已用 Powerline 符号集“打过补丁”的字体。
我能给自己喜欢的字体打补丁,而不用这里的字体吗?可以。这个仓库只是一个方便的已打补丁热门字体合集;如果你想自己给自定义字体打补丁,实际的打补丁工具位于独立的 powerline-fonts/fontpatcher 项目中。
这能修复我提示符里显示错乱的箭头和符号吗?能。安装本仓库中打过补丁的字体并在终端中选中后,Powerline 的分隔符和箭头字形就能正常显示,而不会变成方框或缺失的字符。
Creator
powerline
Size
20.7 MB
Stars
26.3K
Age
13y
Commits · 90 Days