Crates.io | fontup |
lib.rs | fontup |
version | 0.1.2 |
source | src |
created_at | 2023-11-30 02:03:10.846087 |
updated_at | 2023-11-30 02:30:24.966338 |
description | A cross-platform command line application that makes installing and uninstalling fonts a blast! |
homepage | https://github.com/tomshaw/fontup |
repository | https://github.com/tomshaw/fontup |
max_upload_size | |
id | 1053807 |
size | 218,775 |
FontUp is a cross-platform command line application that makes installing and uninstalling fonts a blast! 💥
First, add FontUp to your Cargo.toml
:
[dependencies]
fontup = "0.1.2"
Use the --install
argument to specify one or more font files that you want to install. You can provide multiple files by separating them with spaces.
📝 Note: Use quotes if your file paths include spaces.
fontup --install /path/to/font1.ttf /path/to/font2.ttf
This will install the fonts located at /path/to/font1.ttf
and /path/to/font2.ttf
.
The --uninstall
argument is used to specify one or more font files that you want to uninstall. You can provide multiple files by separating them with spaces.
fontup --uninstall /path/to/font1.ttf /path/to/font2.ttf
This will uninstall the fonts located at /path/to/font1.ttf
and /path/to/font2.ttf
.
📝 Note: This is a Windows only feature.
The --temp
is a boolean flag that indicates whether font installation is temporary. Once your system reboots the font will be automagically removed.
fontup --install /path/to/font1.ttf --temp
fontup --uninstall /path/to/font1.ttf --temp
Installs all the fonts found in specified folder
fontup --folder /path/to/folder
This utility depends on the following Rust crates:
chrono
: 0.4 - Comprehensive support for working with date and time.colored
: 2.0.4 - Coloring terminal text output.cli-table
: 0.4.7 - Creating and displaying tables in the command line.dirs
: 3.0.2 - Finding platform-specific, user-accessible directories.path-slash
: 0.2.1 - Converting file paths to and from slash paths.structopt
: 0.3.26 - Handling command line arguments by defining a struct.ttf-parser
: 0.20.0 - High-level, safe, zero-allocation TrueType font parser.tokio
: 1 (with full features) - Event-driven, non-blocking I/O platform for writing asynchronous applications.winapi
: 0.3 (with winuser feature) - Raw FFI bindings to all of Windows API.winreg
: 0.52.0 - Rust bindings to the Windows Registry API.This project uses the Fira Code font, which is licensed under the SIL Open Font License, Version 1.1.
The MIT License (MIT). See License File for more information.