INSTALL FONTS ON DEBIAN LINUX
We can install True Type or
Open Type fonts(
.ttc) in DEBIAN LINUX, like
ubuntu or kali.
DOWNLOAD FONT FROM WEBSITE
https://github.com/microsoft/cascadia-code/releasesand unzip it.
- We got 3 folders here:
woff2, and we only need `ttf
COPY FILES TO SYSTEM FONT DIRECTORY
Font fils are generally installed in either the system font directory
on the path
/usr/share/fonts/ or in a user font directory
that is frequently on one of the following paths:
- Execute the following command to copy the fonts to system path
sudo cp -r ttf /usr/share/fonts/CascadiaCode
GENERATE FONT CHACHE
We need to build font infomation caches for apps using fontconfig for their font handling.
If you cannot execute
fc-cachecommand , copy and execute the following command in terminal.
1 sudo apt install fontconfig
VERIFY THE FONT INSTALLATION
Confirm that the fonts are installed by displaying the paths and
style definitions with
fc-list command filtered on the font
family name with
fc-list | grep "Cascadia Code"
- Get to
fontin the bar
'Cascadia Code',to the
Editor: Font Family.
- Restart vscode.