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/ sudo fc-cache -fv
Note that
/mnt/c
is the path to the C: drive in Windows when you're working within WSL. -
Verify Installation: You can verify that the font is installed by running the following command in your WSL terminal:
fc-list | grep "Victor Mono"
Hope this help !!