Skip to content

Instantly share code, notes, and snippets.

@scmanjarrez
Created January 25, 2024 10:19
Show Gist options
  • Save scmanjarrez/3429d58d47f12c1659426490a9935c39 to your computer and use it in GitHub Desktop.
Save scmanjarrez/3429d58d47f12c1659426490a9935c39 to your computer and use it in GitHub Desktop.
Install microsoft propietary fonts in linux (calibri, cambria, corbel, etc)
#!/bin/bash
TMPDIR=/tmp/msfonts
mkdir -p $TMPDIR
cd $TMPDIR
wget https://sourceforge.net/projects/mscorefonts2/files/cabs/PowerPointViewer.exe
cabextract -L -F ppviewer.cab -d . PowerPointViewer.exe
cabextract -L -F '*.TT[FC]' -d . ppviewer.cab
mkdir -p ~/.local/share/font
mv *ttf ~/.local/share/font
fc-cache -f -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment