Skip to content

Instantly share code, notes, and snippets.

@piperswe
Last active April 8, 2019 10:06
Show Gist options
  • Save piperswe/fa4508e27f457d7b796ffd474be35d62 to your computer and use it in GitHub Desktop.
Save piperswe/fa4508e27f457d7b796ffd474be35d62 to your computer and use it in GitHub Desktop.
Install Consolas on OS X (based on avalonalex/8125197)
Thanks to this Gist: https://gist.github.com/avalonalex/8125197
How to use: Make sure Homebrew is installed then run `curl https://gist.githubusercontent.com/zebMcCorkle/fa4508e27f457d7b796ffd474be35d62/raw/59942466b13fe92d09b4b537cc7fcfb309c05c4a/consolas.sh | bash -`
#!/bin/sh
set -e
brew install cabextract
cd /tmp
curl -O http://download.microsoft.com/download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26/PowerPointViewer.exe
cabextract PowerPointViewer.exe
cabextract ppviewer.cab
open CONSOLA*.TTF
@mikemcbride
Copy link

👍 this worked perfectly, thanks!

@ladrift
Copy link

ladrift commented Aug 26, 2016

Worked for me. Thanks a lot!

@Ivor
Copy link

Ivor commented Sep 28, 2017

Worked great but macOS was very unhappy about it. Strong warnings about issues with the fonts.

@Spiral90210
Copy link

I had the same warnings on macOS, however working inside a folder '~/consolas' instead of '/tmp' worked fine, and made cleaning up easier too (though sudo rm -r ~/consolas was required, probably due to attributes/permissions on the extracted files).

@nvcken
Copy link

nvcken commented Oct 8, 2018

PowerPointViewer.exe: no valid cabinets found

All done, errors in processing 1 file(s)

pls help

@amirkarimi
Copy link

@nvcken I had the same issue. Just downloaded the PowerPointViewer.exe from here, put it besides vistafonts-installer script, removed the download part from the script and run it. Worked for me.

@minjia521
Copy link

@amirkarimi it worked well, thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment