To install a font in WSL, follow these steps:
-
Check Font Location: Confirm that the font file (e.g., VictorMono.ttf) is located in a directory accessible from your WSL instance. You can copy the font file to your WSL home directory for simplicity.
-
Install Font: You can use the
fc-cache
command to update the font cache in WSL and make the font available. Open a terminal in your WSL instance and run the following commands:
sudo cp /mnt/c/path/to/VictorMono.ttf /usr/local/share/fonts/