Skip to content

chocolateimage/fontviewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Font Viewer

View and install fonts on a Linux system and install fonts from Google Fonts.

image


Installation

To install the package, run:

bash <(curl -s https://raw.githubusercontent.com/chocolateimage/fontviewer/refs/heads/main/install.sh)

I no longer want to do PPA for now because of how shitty Launchpad is.

If you have Arch you can install the AUR: yay -S choco-fontviewer

Building/installing from source

You need to have meson installed.

Install all dependencies:

# Debian/Ubuntu (apt)
sudo apt install meson pkg-config libfontconfig-dev libgtkmm-3.0-dev libjson-glib-dev libcurl4-gnutls-dev

# Fedora (dnf)
sudo dnf install git g++ meson pkg-config fontconfig-devel gtkmm3.0-devel json-glib-devel libcurl-devel

# Arch Linux (pacman)
sudo pacman -S --needed git gcc meson fontconfig gtkmm3 json-glib curl

You may want to remove libcurl4-gnutls-dev from the install list if you already have libcurl-dev installed.

Run this command to setup the build directory:

meson setup builddir
cd builddir

If you want to install:

meson install

And press "y" and enter if asked for elevated privileges, the program should now appear in the application launcher as "Fonts".


If you want to develop:

To compile the program run:

meson compile

To run fontviewer run:

# Make sure to be in the build directory!
./fontviewer

Uninstallation

To uninstall an already installed installation, run:

bash <(curl -s https://raw.githubusercontent.com/chocolateimage/fontviewer/refs/heads/main/uninstall.sh)