Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nawatts/font2image
A command line tool for generating images from icon fonts
https://github.com/nawatts/font2image
command-line-tool icon-font
Last synced: 3 days ago
JSON representation
A command line tool for generating images from icon fonts
- Host: GitHub
- URL: https://github.com/nawatts/font2image
- Owner: nawatts
- License: mit
- Created: 2013-12-03T00:11:00.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2020-02-23T21:34:20.000Z (almost 5 years ago)
- Last Synced: 2024-04-14T05:26:20.058Z (9 months ago)
- Topics: command-line-tool, icon-font
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# font2image
A command line tool for generating images from icon fonts```
usage: font2image.py [-h] [--background-color BACKGROUND_COLOR]
[--fill-color FILL_COLOR] [--font-size FONT_SIZE]
[--image-size IMAGE_SIZE] [--output OUTPUT]
font_file glyphGenerate an image from a character in a font.
positional arguments:
font_file The font file to pull icon from.
glyph The Unicode code of the character to render. Ex: f0f3.optional arguments:
-h, --help show this help message and exit
--background-color BACKGROUND_COLOR
Background color of image as RGB hex string. Defaults to #ffffff.
--fill-color FILL_COLOR
Color of character as RGB hex string. Defaults to #000000.
--font-size FONT_SIZE
Size of character to draw in pixels. Defaults to half
of image size.
--image-size IMAGE_SIZE
Dimensions of output image in pixels. Defaults to 128
pixels.
--output OUTPUT Path to output generated image. The output image's
format is determined by the file extension. If output
is omitted, a preview will be shown. Note that the
preview mechanism may not support an alpha channel.
```