Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Get the fonts needed by Chromium's LayoutTests on Fedora Linux
sudo mkdir -p /usr/share/fonts/opentype
sudo mkdir -p /usr/share/fonts/truetype
sudo dnf install -y ipa-gothic-fonts ipa-pgothic-fonts ipa-mincho-fonts ipa-pmincho-fonts
sudo mkdir -p /usr/share/fonts/opentype/ipafont-gothic
sudo cp /usr/share/fonts/ipa-gothic/ipag.ttf /usr/share/fonts/opentype/ipafont-gothic/
sudo cp /usr/share/fonts/ipa-pgothic/ipagp.ttf /usr/share/fonts/opentype/ipafont-gothic/
sudo mkdir -p /usr/share/fonts/opentype/ipafont-mincho
sudo cp /usr/share/fonts/ipa-mincho/ipam.ttf /usr/share/fonts/opentype/ipafont-mincho/
sudo cp /usr/share/fonts/ipa-pmincho/ipamp.ttf /usr/share/fonts/opentype/ipafont-mincho/
sudo dnf install -y thai-scalable-garuda-fonts
sudo mkdir -p /usr/share/fonts/truetype/thai/
sudo cp /usr/share/fonts/thai-scalable/Garuda.ttf /usr/share/fonts/truetype/thai/Garuda.ttf
sudo dnf install -y dejavu-sans-fonts
sudo mkdir -p /usr/share/fonts/truetype/ttf-dejavu
sudo cp /usr/share/fonts/dejavu/DejaVuSans.ttf /usr/share/fonts/truetype/ttf-dejavu/
sudo dnf install -y lohit-devanagari-fonts lohit-gurmukhi-fonts lohit-tamil-fonts
sudo mkdir -p /usr/share/fonts/truetype/ttf-indic-fonts-core
sudo cp /usr/share/fonts/lohit-devanagari/Lohit-Devanagari.ttf /usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_hi.ttf
sudo cp /usr/share/fonts/lohit-tamil/Lohit-Tamil.ttf /usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_ta.ttf
sudo mkdir -p /usr/share/fonts/truetype/ttf-punjabi-fonts
sudo cp /usr/share/fonts/lohit-gurmukhi/Lohit-Gurmukhi.ttf /usr/share/fonts/truetype/ttf-punjabi-fonts/lohit_pa.ttf
# Used to be packaged in fonts-bengali, that is no longer the case.
cd /tmp
wget http://download.savannah.nongnu.org/releases/freebangfont/MuktiNarrow-0.94.tar.bz2
tar -xjf MuktiNarrow-0.94.tar.bz2
sudo mv MuktiNarrow0.94/MuktiNarrow.ttf /usr/share/fonts/truetype/ttf-indic-fonts-core/
rm MuktiNarrow-0.94.tar.bz2
rm -r MuktiNarrow0.94/
# Not packaged in Fedora or rpmfusion: http://mscorefonts2.sourceforge.net/
sudo dnf install https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm
sudo mkdir -p /usr/share/fonts/truetype/msttcorefonts
sudo cp /usr/share/fonts/msttcore/arial.ttf /usr/share/fonts/truetype/msttcorefonts/Arial.ttf
sudo cp /usr/share/fonts/msttcore/arialbd.ttf /usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf
sudo cp /usr/share/fonts/msttcore/arialbi.ttf /usr/share/fonts/truetype/msttcorefonts/Arial_Bold_Italic.ttf
sudo cp /usr/share/fonts/msttcore/ariali.ttf /usr/share/fonts/truetype/msttcorefonts/Arial_Italic.ttf
sudo cp /usr/share/fonts/msttcore/comic.ttf /usr/share/fonts/truetype/msttcorefonts/Comic_Sans_MS.ttf
sudo cp /usr/share/fonts/msttcore/comicbd.ttf /usr/share/fonts/truetype/msttcorefonts/Comic_Sans_MS_Bold.ttf
sudo cp /usr/share/fonts/msttcore/cour.ttf /usr/share/fonts/truetype/msttcorefonts/Courier_New.ttf
sudo cp /usr/share/fonts/msttcore/courbd.ttf /usr/share/fonts/truetype/msttcorefonts/Courier_New_Bold.ttf
sudo cp /usr/share/fonts/msttcore/courbi.ttf /usr/share/fonts/truetype/msttcorefonts/Courier_New_Bold_Italic.ttf
sudo cp /usr/share/fonts/msttcore/couri.ttf /usr/share/fonts/truetype/msttcorefonts/Courier_New_Italic.ttf
sudo cp /usr/share/fonts/msttcore/georgia.ttf /usr/share/fonts/truetype/msttcorefonts/Georgia.ttf
sudo cp /usr/share/fonts/msttcore/georgiab.ttf /usr/share/fonts/truetype/msttcorefonts/Georgia_Bold.ttf
sudo cp /usr/share/fonts/msttcore/georgiaz.ttf /usr/share/fonts/truetype/msttcorefonts/Georgia_Bold_Italic.ttf
sudo cp /usr/share/fonts/msttcore/georgiai.ttf /usr/share/fonts/truetype/msttcorefonts/Georgia_Italic.ttf
sudo cp /usr/share/fonts/msttcore/impact.ttf /usr/share/fonts/truetype/msttcorefonts/Impact.ttf
sudo cp /usr/share/fonts/msttcore/trebuc.ttf /usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS.ttf
sudo cp /usr/share/fonts/msttcore/trebucbd.ttf /usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS_Bold.ttf
sudo cp /usr/share/fonts/msttcore/trebucbi.ttf /usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS_Bold_Italic.ttf
sudo cp /usr/share/fonts/msttcore/trebucit.ttf /usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS_Italic.ttf
sudo cp /usr/share/fonts/msttcore/times.ttf /usr/share/fonts/truetype/msttcorefonts/Times_New_Roman.ttf
sudo cp /usr/share/fonts/msttcore/timesbd.ttf /usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold.ttf
sudo cp /usr/share/fonts/msttcore/timesbi.ttf /usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold_Italic.ttf
sudo cp /usr/share/fonts/msttcore/timesi.ttf /usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Italic.ttf
sudo cp /usr/share/fonts/msttcore/verdana.ttf /usr/share/fonts/truetype/msttcorefonts/Verdana.ttf
sudo cp /usr/share/fonts/msttcore/verdanab.ttf /usr/share/fonts/truetype/msttcorefonts/Verdana_Bold.ttf
sudo cp /usr/share/fonts/msttcore/verdanaz.ttf /usr/share/fonts/truetype/msttcorefonts/Verdana_Bold_Italic.ttf
sudo cp /usr/share/fonts/msttcore/verdanai.ttf /usr/share/fonts/truetype/msttcorefonts/Verdana_Italic.ttf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment