MS core fonts are not in the Alma repos (licensing), so here is the routine that works cleanly on AlmaLinux 10.2, including copying newer font collections from a Windows VM and removing duplicates afterwards.
-1. Core fonts via the original corefonts packages
sudo dnf install epel-release
sudo dnf install cabextract wget
mkdir -p ~/mscorefonts && cd ~/mscorefonts
for f in andale32 arial32 arialb32 comic32 courie32 georgi32 impact32 times32 trebuc32 verdan32 webdin32; do
wget -c "``https://downloads.sourceforge.net/corefonts/${f}.exe``"
done
cabextract *.exe
system-wide:
sudo mkdir -p /usr/share/fonts/mscorefonts
sudo find . -iname '*.ttf' -exec cp {} /usr/share/fonts/mscorefonts/ \;
sudo fc-cache -f
(or copy to ~/.local/share/fonts/ instead to keep it per-user, then `fc-cache -f` without sudo)
-2. Copying fonts from a Windows VM (VMware)
Easiest via Shared Folders: VM Settings → Options → Shared Folders → Always enabled, add a host folder. In the Windows guest it appears as a drive (usually Z:). Copy what you want from C:\Windows\Fonts there.
Worth taking: Calibri, Cambria, Candara, Constantia, Corbel, Consolas, Segoe UI, Tahoma, Symbol, Wingdings. Skip .fon files (bitmap, useless on Linux) and scripts you don’t use. .ttc collections work fine.
-3. Verify
fc-match Arial
fc-match "Times New Roman"
fc-match "Courier New"
-4. Cleaning up duplicates
If you ended up with the same family in two folders (e.g. old mscorefonts + newer Windows copies), find them:
for f in Arial "Arial Black" "Courier New" "Times New Roman" Verdana "Trebuchet MS" Georgia Impact "Comic Sans MS" "Andale Mono" Webdings; do
echo "== $f =="
fc-list "$f" file | sort -u
done
If a family shows files from two different directories, keep the newer copy (the Windows one is almost always newer) and move the old one out instead of deleting:
mkdir -p ~/font-backup
sudo mv /usr/share/fonts/mscorefonts ~/font-backup/mscorefonts
sudo fc-cache -f
-Notes
- Don’t touch the Liberation fonts — they are separate families that fontconfig substitutes for Arial/Courier New/Times New Roman when the real ones are missing. Metric-compatible, extremely useful.
- Per-user fonts live in
~/.local/share/fonts/, system-wide in/usr/share/fonts/.