You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><aclass="reference external" href="https://aur.archlinux.org/packages/powerline-git/">Arch Linux (AUR)</a></li>
97
101
</ul>
98
102
</div>
103
+
<divclass="section" id="font-installation">
104
+
<spanid="id1"></span><h3>Font installation<aclass="headerlink" href="#font-installation" title="Permalink to this headline">¶</a></h3>
105
+
<divclass="section" id="linux">
106
+
<h4>Linux<aclass="headerlink" href="#linux" title="Permalink to this headline">¶</a></h4>
107
+
<p>If you’re running Linux, you may be able to avoid patching your coding font
108
+
to get the special glyphs required by Powerline. This works by utilizing
109
+
fontconfig’s fallback font feature, which replaces missing glyphs in a font
110
+
with another font on your system.</p>
111
+
<p>This has been tested and works very well with many different coding fonts,
112
+
but some fonts may look terrible, in which case you’ll have to use a patched
113
+
font (see <aclass="reference internal" href="fontpatching.html#font-patching"><em>Font patching</em></a> for details).</p>
114
+
<olclass="arabic">
115
+
<li><pclass="first">Download the <aclass="reference external" href="https://github.com/Lokaltog/powerline/raw/develop/powerline/fontpatcher/PowerlineSymbols.otf">latest version of PowerlineSymbols</a>.</p>
116
+
</li>
117
+
<li><pclass="first">Move <ttclass="file docutils literal"><spanclass="pre">PowerlineSymbols.otf</span></tt> to <ttclass="file docutils literal"><spanclass="pre">~/.fonts</span></tt>.</p>
118
+
</li>
119
+
<li><pclass="first">Run <ttclass="docutils literal"><spanclass="pre">fc-cache</span><spanclass="pre">-vf</span><spanclass="pre">~/.fonts</span></tt> to update your font cache.</p>
120
+
</li>
121
+
<li><pclass="first">Edit your fontconfig file, located in either <ttclass="file docutils literal"><spanclass="pre">~/.fonts.conf</span></tt> or
122
+
<ttclass="file docutils literal"><spanclass="pre">~/.config/fontconfig/fonts.conf</span></tt>, depending on your fontconfig
123
+
version. If your fontconfig file is empty, add the entire code block
124
+
below. If you already have a custom font configuration, only add the
125
+
<ttclass="docutils literal"><spanclass="pre"><alias></span></tt> block to your font configuration:</p>
<spanclass="nt"><family></span>YOUR MONOSPACE FONT HERE<spanclass="nt"></family></span>
135
+
<spanclass="nt"></prefer></span>
136
+
<spanclass="nt"></alias></span>
137
+
<spanclass="nt"></fontconfig></span>
138
+
</pre></div>
139
+
</div>
140
+
<p>Remember to replace <ttclass="docutils literal"><spanclass="pre">YOUR</span><spanclass="pre">MONOSPACE</span><spanclass="pre">FONT</span><spanclass="pre">HERE</span></tt> with your preferred
141
+
coding font.</p>
142
+
</li>
143
+
<li><pclass="first">Configure your terminal emulator or gvim to use the <ttclass="docutils literal"><spanclass="pre">monospace</span></tt> font.</p>
144
+
</li>
145
+
<li><pclass="first">If you still don’t see the arrow symbols, please close all instances of
146
+
your terminal emulator or gvim. You may also have to restart X for the
147
+
changes to take effect.</p>
148
+
</li>
149
+
</ol>
150
+
</div>
151
+
<divclass="section" id="os-x-and-windows">
152
+
<h4>OS X and Windows<aclass="headerlink" href="#os-x-and-windows" title="Permalink to this headline">¶</a></h4>
153
+
<p>You’ll have to use a patched font to use the Powerline symbols. See
154
+
<aclass="reference internal" href="fontpatching.html#font-patching"><em>Font patching</em></a> for details on font patching and pre-patched fonts.</p>
155
+
</div>
156
+
</div>
99
157
</div>
100
158
<divclass="section" id="usage">
101
159
<h2>Usage<aclass="headerlink" href="#usage" title="Permalink to this headline">¶</a></h2>
@@ -174,6 +232,11 @@ <h3><a href="index.html">Table Of Contents</a></h3>
0 commit comments