unihex2png1
Gnu unifont .hex file to portable network graphics converter
Usage
unihex2png [-i
input_file.hex]
-o
output_file.png
[-p
pagenum]
[-r
rows]
Overview
unihex2png reads a page of 256 Unicode code points from a GNU Unifont .hex file and converts the page into a Portable Network Graphics (PNG) file. The graphics file displays the glyphs of a Unicode block of 256 code points in a 32 by 32 pixel grid, or in a 40 by 40 pixel grid if "-r 32" is specified. The glyphs themselves can be either 16, 24, or 32 pixels tall depending on the "-r" parameter. They can be 8, 16, 24, or 32 pixels wide (widths of 32 are only supported if "-r 32" is specified). The default page is 0; that is, the range U+0000 through U+00FF, inclusive.
The PNG file can be printed. It can also be edited with a graphics editor. An edited PNG file can then be re-converted into a GNU Unifont .hex file with the unipng2hex command.
Options
-
-i -
Specify the input file. If not omitted, a Unifont .hex file is read from STDIN.
-
-o -
Specify the output file.
-
-p -
Extract page pagenum from the .hex file. The default is Page 0 (Unicode range U+0000 through U+00FF). Note that "page" is not a standard Unicode term. It refers to an output bitmap graphics page of 16 by 16 code points.
-
-r -
Specify the rows of pixels in the output glyphs. Valid values are 16, 24, and 32. The default is 16 pixel rows tall.
-
-h -
Print a help message of options and exit.
Examples
Sample usage:
unihex2png -i my_input_file.hex -o my_output_file.png
Files
*.hex GNU Unifont font files
Releases
6 releases since Debian 8 (Jessie); the text changed 4 times.