1# PNG files for kernel debugger fonts.
2# This makes the fonts easier to modify if you decide to do so.
3#
4# Convert the font to hex bytes that can be added to the corresponding .cpp files
5# in src/system/kernel/debug/font{,_big}.cpp
6#
7# This uses the convert command from imagemagic to:
8# - Store black as 1 and white as 0
9# - Flip the image left-to-right (that's how our console code expects it)
10# - Convert it to an uncompressed bitmap without header
11# Then it uses xxd to convert it to an hexdump in the correct endianness.
12convert kdlbig.png -depth 1 -negate -flop GRAY:kdlbig
13xxd -g 2 -c 16 kdlbig > kdlbig.hex
14
15convert kdlsmall.png -depth 1 -negate -flop GRAY:kdlsmall
16xxd -g 1  -c 12 kdlsmall > kdlsmall.hex
17