Skip to content

voncay/Image2font

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image2font

travis-badge license-badge

Usage

By example:

git clone https://github.com/limaconoob/Image2font.git image2font && cd image2font
python image2font --input-font tests/assets/ttf/sazanami-gothic.ttf tests/assets/neko_wikipe-tan.png
cp -f sazanami-gothic.ttf $HOME/.local/share/fonts

For more information, see the help's command:

Usage:  [options] arg1.png [...]

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -w GRID_WIDTH, --grid-width=GRID_WIDTH
                        Sets the cell width unity from picture.
  -a GRID_HEIGHT, --grid-heigth=GRID_HEIGHT
                        Sets the cell height unity from picture.
  -c CELL_WIDTH, --cell-width=CELL_WIDTH
                        Sets the cell width pixel from picture.
  -b CELL_HEIGHT, --cell-heigth=CELL_HEIGHT
                        Sets the cell height pixel from picture.
  -i INPUT, --input-font=INPUT
                        Modify this existent font.
  -o OUTPUT, --output-font=OUTPUT
                        Specify the namefont to create.
  -s INDEX, --start-index=INDEX
                        Start to write the glyphs at 0xE000's index if there
                        is `input-font` else at 0x0000.
  -n NAME, --name-font=NAME
                        Is the name of font.

License

image2font's code in this repo uses the GNU GPL v3 license.

Dependencies

Many thanks goes to command/etc's project:

About

Add an image or vectoriel to a font.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages