# font2img ![Downlods Count](https://github.com/kofj/font2png/releases/download/v1.0.0/font2png-macos.tar.gz) A tool for converting TTF icon font to images. ## Install ### MacOS Via homebrew. ```bash brew tap kofj/kofj brew install font2png ``` Via Cargo ``` cargo install font2png ``` ## Help ```bash # font2img v1.0.0 Fanjiankong 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 --color --font --output FLAGS: -h, --help Prints help information -t, --transparent transparent background -V, --version Prints version information OPTIONS: --charter icon charter -c, --color icon css style color -f, --font font file path -o, --output output filename -s, --size output image's height and width(pixel) [default: 120] ``` ## TODO - [ ] Enble/disable transparent background. - [ ] Custom background color. - [ ] Batch convert cmap list. - [ ] Custom batch convert.