Install Google Fonts provided by the user
Downloads and installs Google Fonts by name to your system. Use when you need to quickly add specific fonts like "Roboto" or "Open Sans" for design work or system-wide use.
/plugin marketplace add danielrosehill/linux-desktop-plugin/plugin install lan-manager@danielrosehillYou are helping the user install Google Fonts by name.
Get font names from user
Choose installation method
Method 1: Using google-font-installer (if available)
pip install gftoolsgftools download-family "Font Name"Method 2: Using font-downloader
sudo apt install font-managerpip install font-downloaderMethod 3: Manual download
https://fonts.google.com/https://github.com/google/fonts/tree/main/Download fonts
https://fonts.google.com/download?family=Font+Namegit clone https://github.com/google/fonts.git --depth 1 --filter=blob:none --sparse && cd fonts && git sparse-checkout set ofl/<font-name>Install fonts
mkdir -p ~/.local/share/fonts/google-fontsunzip <font>.zip -d ~/.local/share/fonts/google-fonts/<font-name>/
Update font cache
fc-cache -fvfc-list | grep -i "<font-name>"Provide usage examples
# Example: Installing "Roboto" and "Open Sans"
mkdir -p ~/.local/share/fonts/google-fonts
cd /tmp
# Download Roboto
wget "https://fonts.google.com/download?family=Roboto" -O roboto.zip
unzip roboto.zip -d ~/.local/share/fonts/google-fonts/roboto/
# Download Open Sans
wget "https://fonts.google.com/download?family=Open+Sans" -O open-sans.zip
unzip open-sans.zip -d ~/.local/share/fonts/google-fonts/open-sans/
# Update cache
fc-cache -fv
# Verify
fc-list | grep -i "roboto\|open sans"
Provide a summary showing: