How to install Powerline fonts in Windows

Stanley Meng
Dec 14, 2017 · 2 min read

I got the method from this blog:

Why do you want to install Powerline fonts? because, I wanna putty to a host which has oh-my-zsh installed.

Jason’s blog is quite long, in short,

1. Go to the Powerline Fonts Github page.
2. Click on the green “Clone or download” button.
3. Click “Download ZIP”
4. Save the file to your Downloads folder or wherever you want to put it.
5. Extract
6. Go into the fonts-master folder and the other fonts-master folder inside that. Rather than opening each folder and trying to install each font file ending with .ttf or .otf with the Windows Font Viewer, we will use a PowerShell batch script ( .ps1) called install.ps1. But a few things need to be done to make it work.
7. You need to open PowerShell as an Administrator ( Window Key + X then select “Windows PowerShell (Admin)”. Click “Yes” when the User Access Control (UAC) prompt shows up. Because PowerShell started with the Administrator user rather than the regular user (you), PowerShell starts up in C:\WINDOWS\system32 instead of C:\Users\${env:UserName}, you will need to navigate to the fonts-master folder in the Downloads folder. You can do this by typing cd ${HOME}\Downloads\fonts-master\fonts-master.
8. Next we need to tell the Execution Policy to stand down. If you don’t do this, the script won’t be allowed to run. This isn’t the same as what Linux does where the script is given execution privileges. Rather it is the inverse. The Execution Policy is a blanket approach to preventing scripts from executing. We will need to set to Execution Policy to Bypass, so that we may run this script. If you entered something else, you can reset the execution policy to Restricted later. So type Set-ExecutionPolicy Bypass. You will likely be warned you are changing the Execution Policy, type y for Yes then enter.
9. Now we can run the install.ps1 file! Type .\install.ps1. If you are Installing a newer version, you will likely be prompted for every font that is replaced. (I should look into that.) Otherwise new fonts will be installed.
10. Just to be sure, reset the Execution Policy back to the Default setting. Set-ExecutionPolicy Default then type y for Yes like before.

that’s it. Now, when you open the preference of putty, you can see a few of new fonts for powerline

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store