font2png

Crates.iofont2png
lib.rsfont2png
version1.0.0
sourcesrc
created_at2021-05-22 05:43:50.531478
updated_at2021-05-22 06:27:22.859091
descriptionA tool for converting TTF icon font to images.
homepagehttps://blog.kfanjian.com/font2png
repositoryhttps://github.com/kofj/font2png
max_upload_size
id400727
size41,987
疯魔慕薇 (kofj)

documentation

https://blog.kfanjian.com/font2png

README

font2img

Downlods Count

A tool for converting TTF icon font to images.

Install

MacOS

Via homebrew.

brew tap kofj/kofj
brew install font2png

Via Cargo

cargo install font2png

Help

# 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]

TODO

  • Enble/disable transparent background.
  • Custom background color.
  • Batch convert cmap list.
  • Custom batch convert.
Commit count: 5

cargo fmt