qunifont is the qunified fork of the unifont, a 8*16 bitmap font distributed by gnu with a near 100% unicode coverage. Pads are used to collectively draw post-binary ligatures.
Go to file
2024-10-29 11:28:15 +01:00
pad-en-grille .gitignore + @TODO bg en pseudo-element 2024-10-24 13:46:54 +02:00
.gitignore padascii2uniascii script and some notes in README 2024-10-28 17:03:38 +01:00
padascii2uniascii.sh remove space EOL and remove first empty line 2024-10-29 10:54:54 +01:00
README.md bdf tests, otf tests and commands in readme 2024-10-29 11:28:15 +01:00
unifont-15.1.05.otf test de grille pour un fond de pad 2024-10-23 22:47:43 +02:00
unifont-black.hex Update 'unifont-black.hex' 2024-10-24 13:49:02 +02:00
unifont-black.otf .gitignore + @TODO bg en pseudo-element 2024-10-24 13:46:54 +02:00
unifont-number-sign-black.otf .gitignore + @TODO bg en pseudo-element 2024-10-24 13:46:54 +02:00

Qunifont

Qunifont is a qunified version of the Unifont

Drawing new Qunifont glyphs (in pads)

Download, extract and rename the last Unifont tar.gz file (https://unifoundry.com/pub/unifont/?C=M;O=D) to get access to the Unifont utilities scripts

curl https://unifoundry.com/pub/unifont/unifont-16.0.01/unifont-16.0.01.tar.gz -o unifont.tar.gz
tar -xvf unifont.tar.gz
mv unifont-16.0.01 unifont

Change the GLYPH_MAX_WIDTH variable from hex2otf.c to 64 and compile it with gcc unifont/src/hex2otf.c -o hex2otf

#define GLYPH_MAX_WIDTH 64	///< Maximum glyph width, in pixels.

Draw glyphs in a pad following this format (hexadecimal identifier):

F4910:
----------------
----------------
----------------
----------------
---#----######--
---#---#------#-
---#---#------#-
-##############-
---#------------
---#------------
---#------------
---#------------
---#------------
----##----------
----------------
----------------

Run padascii2uniascii to download the pad's content and format it for the Unifont utilities (uniascii)

./padascii2uniascii.sh http://88.127.187.90:9001/p/qunifont > qunifont.txt

Use the Unifont hex glyphs as a base file

cp unifont/font/planee00/unifont-base.hex qunifont.hex

Convert uniascii to unihex and add them to the base file

./unifont/src/hexdraw qunifont.txt  >> qunifont.hex

TODO: remove duplicate id

???

Convert unihex to bdf

./unifont/src/hex2bdf qunifont.hex > qunifont.bdf

Convert unihex to otf, --help for format list

./unifont/src/hex2otf hex=qunifont.hex out=qunifont.otf format=truetype

TODO: add OpenType features, change metadata

Other useful commands

Convert unihex to png preview table (-p for plage)

./unifont/src/unihex2png -i qunifont.hex -o qunifont.png -p 0

Convert unihex to sfd

./unifont/src/hex2sfd < qunifont.hex > qunifont.sfd

Print specific glyph in terminal from hexcode

printf %b\\n \\UF1010
󱀐

printf %b\\n \\UFFE1
£

printf %b\\n \\U1F480
💀