UNIHEX2PNG(1)
β¨ UNIHEX2PNG β¨
okay bestie, welcome to the General Commands Manual page for unihex2png π β yes that's the manual name, and yes we're about to make .hex files turn into actual pictures, no cap.
πΈ NAME πΈ
unihex2png β GNU Unifont .hex file to Portable Network Graphics converter π¦
π SYNOPSIS π
unihex2png [-i input_file.hex] -o output_file.png [-p pagenum] [-r rows]
β¨ DESCRIPTION β¨
So here's the tea π: unihex2png reads a page of 256 Unicode code points out of a GNU Unifont .hex file and turns that whole page into a Portable Network Graphics (PNG) file. Like, glow-up, but for hex data.
That graphics file shows 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 you specify -r 32. The glyphs themselves can be 16, 24, or 32 pixels tall depending on the -r parameter, and they can be 8, 16, 24, or 32 pixels wide (widths of 32 are only supported if -r 32 is specified, so don't try it otherwise π).
The default page is 0 β that's the range U+0000 through U+00FF, inclusive. Starter page energy π
The PNG file can be printed. It can also be edited with a graphics editor. And an edited PNG file can then be re-converted into a GNU Unifont .hex file with the unipng2hex command. Round trip!! π₯
π OPTIONS π
-iβ Specify the input file. If not omitted, a Unifont.hexfile is read fromSTDIN.-oβ Specify the output file.-pβ Extract page pagenum from the.hexfile. The default is Page 0 (Unicode rangeU+0000throughU+00FF). Note that "page" is not a standard Unicode term, bestie π β 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 are16,24, and32. The default is 16 pixel rows tall.-hβ Print a help message of options and exit.
π EXAMPLE π
Sample usage, because a demo ate and left no crumbs:
unihex2png -i my_input_file.hex -o my_output_file.png
π¦ FILES π¦
*.hexGNU Unifont font files
π SEE ALSO π
bdfimplode(1), hex2bdf(1), hex2otf(1), hex2sfd(1), hexbraille(1), hexdraw(1), hexkinya(1), hexmerge(1), johab2syllables(1), johab2ucs2(1), unibdf2hex(1), unibmp2hex(1), unibmpbump(1), unicoverage(1), unidup(1), unifont(5), unifont-johab631(5), unifont-viewer(1), unifont1per(1), unifontchojung(1), unifontksx(1), unifontpic(1), unigen-hangul(1), unigencircles(1), unigenwidth(1), unihex2bmp(1), unihexfill(1), unihexgen(1), unihexpose(1), unihexrotate(1), unijohab2html(1), unipagecount(1), unipng2hex(1)
(the whole friend group fr fr π«Ά)
π AUTHOR π
unihex2png was written by Andrew Miller, starting by converting Paul Hardy's unihex2bmp C program to Perl. iconic origin story ngl β¨
π LICENSE π
unihex2png is Copyright Β© 2007 Paul Hardy, Β© 2013 Andrew Miller.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. slay, legally π
π BUGS π
No known real bugs exist, but the optional pixel rows parameter is not yet supported by all other Unifont utilities. Use of glyphs taller than the default of 16 pixels is considered experimental. Currently unihex2png, unipng2hex, hexdraw, and hex2bdf tentatively support glyphs that are 16, 24, and 32 pixels tall.
Also, there is no extensive error checking on input files. If they're not in the format of the original GNU Unifont .hex file, all bets are off. Like, genuinely. Do not come for me. π
Lines can be terminated either with line feed, or carriage return plus line feed. either way, she's flexible π§
and that's the whole page, bestie!! π this one's from the General Commands Manual, dated 2013 Nov 09 β go forth and convert those glyphs, you've got this π
π¦ where this page comes from
- alpine 3.22: unifont-doc 16.0.03-r0 Β· GFDL-1.3-or-later GPL-2.0-or-later WITH Font-exception-2.0
- alpine 3.23: unifont-doc 17.0.03-r0 Β· GFDL-1.3-or-later GPL-2.0-or-later WITH Font-exception-2.0
- alpine 3.24: unifont-doc 17.0.04-r0 Β· GFDL-1.3-or-later GPL-2.0-or-later WITH Font-exception-2.0
- debian trixie: unifont-bin 1:15.1.01-1 Β· GPL-2.0-or-later
- fedora 43: unifont 16.0.01-6.fc43 Β· GPL-2.0-or-later AND OFL-1.1 AND GFDL-1.3-or-later
- fedora 44: unifont 16.0.01-7.fc44 Β· GPL-2.0-or-later AND OFL-1.1 AND GFDL-1.3-or-later
- nixpkgs unstable: unifont 18.0.01
- ubuntu noble: unifont-bin 1:15.1.01-1build1 Β· GPL-2.0-or-later
- ubuntu questing: unifont-bin 1:16.0.04-1
- ubuntu resolute: unifont-bin 1:16.0.04-1build1 Β· GPL-2.0-or-later
- ubuntu stonking: unifont-bin 1:16.0.04-1build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms