Crates.io | font2png |
lib.rs | font2png |
version | 1.0.0 |
source | src |
created_at | 2021-05-22 05:43:50.531478 |
updated_at | 2021-05-22 06:27:22.859091 |
description | A tool for converting TTF icon font to images. |
homepage | https://blog.kfanjian.com/font2png |
repository | https://github.com/kofj/font2png |
max_upload_size | |
id | 400727 |
size | 41,987 |
A tool for converting TTF icon font to images.
Via homebrew.
brew tap kofj/kofj
brew install font2png
Via Cargo
cargo install font2png
# font2img v1.0.0
Fanjiankong <kfanjian@gmail.com>
A tool for converting TTF icon font to images.
example:
font2png --charter $(printf '\ue957') -s 80 -f a -o src/assets/on/user.png -c "#d43c33"
USAGE:
font2png [FLAGS] [OPTIONS] --charter <charter> --color <color> --font <fontpath> --output <output>
FLAGS:
-h, --help Prints help information
-t, --transparent transparent background
-V, --version Prints version information
OPTIONS:
--charter <charter> icon charter
-c, --color <color> icon css style color
-f, --font <fontpath> font file path
-o, --output <output> output filename
-s, --size <size> output image's height and width(pixel) [default: 120]