1UNIPNG2HEX(1)               General Commands Manual              UNIPNG2HEX(1)
2
3
4

NAME

6       unipng2hex  -  Portable  Network Graphics to GNU Unifont .hex file con‐
7       verter
8

SYNOPSIS

10       unipng2hex -i input_file.png [-o output_file.hex] [-w width]
11

DESCRIPTION

13       unipng2hex reads a PNG file produced  by  unihex2png  before  or  after
14       editing, and converts it back into a Unifont .hex format file.  The PNG
15       file contains a block of 256 Unicode code points arranged in a 16 by 16
16       grid.   Each code point appears in a 32 by 32 or a 40 by 40 pixel grid.
17       Characters are either 16, 24 or 32 pixel rows high,  depending  on  the
18       "-r"  parameter  specified by unihex2png.  They can be 8, 16, 24, or 32
19       pixel columns wide (widths of 32 are only supported for  32  pixel  row
20       tall characters).
21

OPTIONS

23       -i    Specify the input file.
24
25       -o    Specify  the output file.  If omitted, a file in the Unifont .hex
26             format is written to STDOUT.
27
28       -w    Specify the minimum width of the output glyphs.  Valid values are
29             16, 24,
30              and 32.  The default is no minimum width.
31
32       -h    Print a help message of options and exit.
33

EXAMPLE

35       Sample usage:
36
37              unipng2hex -i my_input_file.png -o my_output_file.hex
38

FILES

40       *.png graphics files
41

SEE ALSO

43       bdfimplode(1),  hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1), hex‐
44       draw(1),  hexkinya(1),   hexmerge(1),   johab2ucs2(1),   unibdf2hex(1),
45       unibmp2hex(1),  unibmpbump(1),  unicoverage(1),  unidup(1), unifont(5),
46       unifont-viewer(1),  unifont1per(1),  unifontchojung(1),  unifontksx(1),
47       unifontpic(1),  unigencircles(1),  unigenwidth(1),  unihex2bmp(1), uni‐
48       hex2png(1),  unihexfill(1),  unihexgen(1),  unihexrotate(1),   unipage‐
49       count(1)
50

AUTHOR

52       unipng2hex  was  written  by Andrew Miller, starting by converting Paul
53       Hardy's unibmp2hex C program to Perl.
54

LICENSE

56       unipng2hex is Copyright © 2007, 2008 Paul Hardy, © 2013 Andrew Miller.
57
58       This program is free software; you can redistribute it and/or modify it
59       under  the  terms of the GNU General Public License as published by the
60       Free Software Foundation; either version 2 of the License, or (at  your
61       option) any later version.
62

BUGS

64       No  known real bugs exist, but the optional pixel rows parameter is not
65       yet supported by all other Unifont utilities.   Use  of  glyphs  taller
66       than  the  default  of 16 pixels is considered experimental.  Currently
67       unihex2png, unipng2hex, hexdraw, and hex2bdf tentatively support glyphs
68       that are 16, 24, and 32 pixels tall.
69
70       Also,  this  software  does not perform extensive error checking on its
71       input files.  If they're not in the format of the original  PNG  output
72       from unihex2png, all bets are off.
73
74       If the output file is for a "page" containing space code points and the
75       PNG file squares for those code points are not empty,  unipng2hex  pre‐
76       serves the graphics as they are drawn.
77
78       unipng2hex  is designed to work with black and white pixels; do not use
79       other colors.
80
81
82
83                                  2013 Nov 09                    UNIPNG2HEX(1)
Impressum