Skip to content

Commit

Permalink
[debug_print_text] update font bitmap data
Browse files Browse the repository at this point in the history
use tamsyn font
  • Loading branch information
tgfrerer committed Oct 23, 2024
1 parent 74891d0 commit a99a6e3
Showing 1 changed file with 103 additions and 97 deletions.
200 changes: 103 additions & 97 deletions resources/shaders/le_debug_print_text/debug_text.frag
Original file line number Diff line number Diff line change
Expand Up @@ -3,108 +3,114 @@
#extension GL_ARB_separate_shader_objects : enable
#extension GL_ARB_shading_language_420pack : enable

// https://www.zap.org.au/projects/console-fonts-zap/zap-light16.pdf
// Original Font Data:
//
// http://www.fial.com/~scott/tamsyn-font/
//
// Range 0x20 to 0x7f (inclusive)
//
// Every uvec4 holds the bitmap for one 8x16 bit character.
//
const uvec4 font_data[96] = {
{0x00000000, 0x00000000, 0x00000000, 0x00000000},
{0x00000008, 0x08080808, 0x08080008, 0x08000000},
{0x00242424, 0x24000000, 0x00000000, 0x00000000},
{0x00000024, 0x24247E24, 0x247E2424, 0x24000000},
{0x00000808, 0x3E494848, 0x3E090949, 0x3E080800},
{0x00000031, 0x4A4A3408, 0x08162929, 0x46000000},
{0x00000018, 0x24242418, 0x28454246, 0x39000000},
{0x00080808, 0x10000000, 0x00000000, 0x00000000},
{0x00000408, 0x08101010, 0x10101008, 0x08040000},
{0x00002010, 0x10080808, 0x08080810, 0x10200000},
{0x00000000, 0x0008492A, 0x1C2A4908, 0x00000000},
{0x00000000, 0x00080808, 0x7F080808, 0x00000000},
{0x00000000, 0x00000000, 0x00000008, 0x08081000},
{0x00000000, 0x00000000, 0x7E000000, 0x00000000},
{0x00000000, 0x00000000, 0x00000008, 0x08000000},
{0x00000002, 0x02040408, 0x08101020, 0x20000000},
{0x0000003C, 0x4242424A, 0x52424242, 0x3C000000},
{0x00000008, 0x18280808, 0x08080808, 0x3E000000},
{0x0000003C, 0x42420204, 0x08102040, 0x7E000000},
{0x0000003C, 0x4242021C, 0x02024242, 0x3C000000},
{0x00000004, 0x0C142444, 0x447E0404, 0x04000000},
{0x0000007E, 0x4040407C, 0x02020242, 0x3C000000},
{0x0000001C, 0x2040407C, 0x42424242, 0x3C000000},
{0x0000007E, 0x02020404, 0x08081010, 0x10000000},
{0x0000003C, 0x4242423C, 0x42424242, 0x3C000000},
{0x0000003C, 0x42424242, 0x3E020204, 0x38000000},
{0x00000000, 0x00000808, 0x00000008, 0x08000000},
{0x00000000, 0x00000808, 0x00000008, 0x08081000},
{0x00000000, 0x04081020, 0x40201008, 0x04000000},
{0x00000000, 0x00007E00, 0x00007E00, 0x00000000},
{0x00000000, 0x20100804, 0x02040810, 0x20000000},
{0x0000003C, 0x42420204, 0x08080008, 0x08000000},
{0x0000001C, 0x224A5652, 0x52524E20, 0x1E000000},
{0x00000018, 0x24244242, 0x7E424242, 0x42000000},
{0x0000007C, 0x4242427C, 0x42424242, 0x7C000000},
{0x0000003C, 0x42424040, 0x40404242, 0x3C000000},
{0x00000078, 0x44424242, 0x42424244, 0x78000000},
{0x0000007E, 0x4040407C, 0x40404040, 0x7E000000},
{0x0000007E, 0x4040407C, 0x40404040, 0x40000000},
{0x0000003C, 0x42424040, 0x4E424242, 0x3C000000},
{0x00000042, 0x4242427E, 0x42424242, 0x42000000},
{0x0000003E, 0x08080808, 0x08080808, 0x3E000000},
{0x0000001F, 0x04040404, 0x04044444, 0x38000000},
{0x00000042, 0x44485060, 0x60504844, 0x42000000},
{0x00000040, 0x40404040, 0x40404040, 0x7E000000},
{0x00000041, 0x63635555, 0x49494141, 0x41000000},
{0x00000042, 0x62625252, 0x4A4A4646, 0x42000000},
{0x0000003C, 0x42424242, 0x42424242, 0x3C000000},
{0x0000007C, 0x42424242, 0x7C404040, 0x40000000},
{0x0000003C, 0x42424242, 0x42425A66, 0x3C030000},
{0x0000007C, 0x4242427C, 0x48444442, 0x42000000},
{0x0000003C, 0x42424030, 0x0C024242, 0x3C000000},
{0x0000007F, 0x08080808, 0x08080808, 0x08000000},
{0x00000042, 0x42424242, 0x42424242, 0x3C000000},
{0x00000041, 0x41412222, 0x22141408, 0x08000000},
{0x00000041, 0x41414949, 0x55556363, 0x41000000},
{0x00000042, 0x42242418, 0x18242442, 0x42000000},
{0x00000041, 0x41222214, 0x08080808, 0x08000000},
{0x0000007E, 0x02020408, 0x10204040, 0x7E000000},
{0x00001C10, 0x10101010, 0x10101010, 0x101C0000},
{0x00000020, 0x20101008, 0x08040402, 0x02000000},
{0x00003808, 0x08080808, 0x08080808, 0x08380000},
{0x00081422, 0x41000000, 0x00000000, 0x00000000},
{0x00000000, 0x00000000, 0x00000000, 0x007F0000},
{0x00101010, 0x08000000, 0x00000000, 0x00000000},
{0x00000000, 0x003C4202, 0x3E424246, 0x3A000000},
{0x00004040, 0x405C6242, 0x42424262, 0x5C000000},
{0x00000000, 0x003C4240, 0x40404042, 0x3C000000},
{0x00000202, 0x023A4642, 0x42424246, 0x3A000000},
{0x00000000, 0x003C4242, 0x7E404042, 0x3C000000},
{0x00000E10, 0x10107C10, 0x10101010, 0x10000000},
{0x00000000, 0x003A4642, 0x4242463A, 0x0202423C},
{0x00004040, 0x405C6242, 0x42424242, 0x42000000},
{0x00000808, 0x00180808, 0x08080808, 0x3E000000},
{0x00000404, 0x000C0404, 0x04040404, 0x04044438},
{0x00004040, 0x40444850, 0x60504844, 0x42000000},
{0x00001808, 0x08080808, 0x08080808, 0x3E000000},
{0x00000000, 0x00764949, 0x49494949, 0x49000000},
{0x00000000, 0x005C6242, 0x42424242, 0x42000000},
{0x00000000, 0x003C4242, 0x42424242, 0x3C000000},
{0x00000000, 0x005C6242, 0x42424262, 0x5C404040},
{0x00000000, 0x003A4642, 0x42424246, 0x3A020202},
{0x00000000, 0x005C6240, 0x40404040, 0x40000000},
{0x00000000, 0x003C4240, 0x300C0242, 0x3C000000},
{0x00001010, 0x10107C10, 0x10101010, 0x0E000000},
{0x00000000, 0x00424242, 0x42424246, 0x3A000000},
{0x00000000, 0x00414141, 0x22221414, 0x08000000},
{0x00000000, 0x00414149, 0x49494949, 0x36000000},
{0x00000000, 0x00424224, 0x18182442, 0x42000000},
{0x00000000, 0x00424242, 0x4242463A, 0x0202423C},
{0x00000000, 0x007E0204, 0x08102040, 0x7E000000},
{0x00000608, 0x08080830, 0x08080808, 0x08060000},
{0x00000808, 0x08080808, 0x08080808, 0x08080000},
{0x00003008, 0x08080806, 0x08080808, 0x08300000},
{0x00314946, 0x00000000, 0x00000000, 0x00000000},
{0x00000000, 0x0000183C, 0x3C180000, 0x00000000},

{ 0x00000000, 0x00000000, 0x00000000, 0x00000000 },
{ 0x00001010, 0x10101010, 0x00001010, 0x00000000 },
{ 0x00242424, 0x24000000, 0x00000000, 0x00000000 },
{ 0x00000024, 0x247E2424, 0x247E2424, 0x00000000 },
{ 0x00000808, 0x1E20201C, 0x02023C08, 0x08000000 },
{ 0x00000030, 0x494A3408, 0x16294906, 0x00000000 },
{ 0x00003048, 0x48483031, 0x49464639, 0x00000000 },
{ 0x00101010, 0x10000000, 0x00000000, 0x00000000 },
{ 0x00000408, 0x08101010, 0x10101008, 0x08040000 },
{ 0x00002010, 0x10080808, 0x08080810, 0x10200000 },
{ 0x00000000, 0x0024187E, 0x18240000, 0x00000000 },
{ 0x00000000, 0x0808087F, 0x08080800, 0x00000000 },
{ 0x00000000, 0x00000000, 0x00001818, 0x08081000 },
{ 0x00000000, 0x0000007E, 0x00000000, 0x00000000 },
{ 0x00000000, 0x00000000, 0x00001818, 0x00000000 },
{ 0x00000202, 0x04040808, 0x10102020, 0x40400000 },
{ 0x0000003C, 0x42464A52, 0x6242423C, 0x00000000 },
{ 0x00000008, 0x18280808, 0x0808083E, 0x00000000 },
{ 0x0000003C, 0x42020204, 0x0810207E, 0x00000000 },
{ 0x0000007E, 0x04081C02, 0x0202423C, 0x00000000 },
{ 0x00000004, 0x0C142444, 0x7E040404, 0x00000000 },
{ 0x0000007E, 0x40407C02, 0x0202423C, 0x00000000 },
{ 0x0000001C, 0x2040407C, 0x4242423C, 0x00000000 },
{ 0x0000007E, 0x02040408, 0x08101010, 0x00000000 },
{ 0x0000003C, 0x4242423C, 0x4242423C, 0x00000000 },
{ 0x0000003C, 0x4242423E, 0x02020438, 0x00000000 },
{ 0x00000000, 0x00181800, 0x00001818, 0x00000000 },
{ 0x00000000, 0x00181800, 0x00001818, 0x08081000 },
{ 0x00000004, 0x08102040, 0x20100804, 0x00000000 },
{ 0x00000000, 0x00007E00, 0x007E0000, 0x00000000 },
{ 0x00000020, 0x10080402, 0x04081020, 0x00000000 },
{ 0x00003C42, 0x02040810, 0x00001010, 0x00000000 },
{ 0x00001C22, 0x414F5151, 0x51534D40, 0x201F0000 },
{ 0x00000018, 0x24424242, 0x7E424242, 0x00000000 },
{ 0x0000007C, 0x4242427C, 0x4242427C, 0x00000000 },
{ 0x0000001E, 0x20404040, 0x4040201E, 0x00000000 },
{ 0x00000078, 0x44424242, 0x42424478, 0x00000000 },
{ 0x0000007E, 0x4040407C, 0x4040407E, 0x00000000 },
{ 0x0000007E, 0x4040407C, 0x40404040, 0x00000000 },
{ 0x0000001E, 0x20404046, 0x4242221E, 0x00000000 },
{ 0x00000042, 0x4242427E, 0x42424242, 0x00000000 },
{ 0x0000003E, 0x08080808, 0x0808083E, 0x00000000 },
{ 0x00000002, 0x02020202, 0x0242423C, 0x00000000 },
{ 0x00000042, 0x44485060, 0x50484442, 0x00000000 },
{ 0x00000040, 0x40404040, 0x4040407E, 0x00000000 },
{ 0x00000041, 0x63554949, 0x41414141, 0x00000000 },
{ 0x00000042, 0x62524A46, 0x42424242, 0x00000000 },
{ 0x0000003C, 0x42424242, 0x4242423C, 0x00000000 },
{ 0x0000007C, 0x4242427C, 0x40404040, 0x00000000 },
{ 0x0000003C, 0x42424242, 0x4242423C, 0x04020000 },
{ 0x0000007C, 0x4242427C, 0x48444242, 0x00000000 },
{ 0x0000003E, 0x40402018, 0x0402027C, 0x00000000 },
{ 0x0000007F, 0x08080808, 0x08080808, 0x00000000 },
{ 0x00000042, 0x42424242, 0x4242423C, 0x00000000 },
{ 0x00000042, 0x42424242, 0x24241818, 0x00000000 },
{ 0x00000041, 0x41414149, 0x49495563, 0x00000000 },
{ 0x00000041, 0x41221408, 0x14224141, 0x00000000 },
{ 0x00000041, 0x41221408, 0x08080808, 0x00000000 },
{ 0x0000007E, 0x04080810, 0x1020207E, 0x00000000 },
{ 0x00001E10, 0x10101010, 0x10101010, 0x101E0000 },
{ 0x00004040, 0x20201010, 0x08080404, 0x02020000 },
{ 0x00007808, 0x08080808, 0x08080808, 0x08780000 },
{ 0x00001028, 0x44000000, 0x00000000, 0x00000000 },
{ 0x00000000, 0x00000000, 0x00000000, 0x00FF0000 },
{ 0x00201008, 0x04000000, 0x00000000, 0x00000000 },
{ 0x00000000, 0x003C0202, 0x3E42423E, 0x00000000 },
{ 0x00004040, 0x407C4242, 0x4242427C, 0x00000000 },
{ 0x00000000, 0x003C4240, 0x4040423C, 0x00000000 },
{ 0x00000202, 0x023E4242, 0x4242423E, 0x00000000 },
{ 0x00000000, 0x003C4242, 0x7E40403E, 0x00000000 },
{ 0x00000E10, 0x107E1010, 0x10101010, 0x00000000 },
{ 0x00000000, 0x003E4242, 0x4242423E, 0x02023C00 },
{ 0x00004040, 0x407C4242, 0x42424242, 0x00000000 },
{ 0x00000808, 0x00380808, 0x0808083E, 0x00000000 },
{ 0x00000404, 0x001C0404, 0x04040404, 0x04043800 },
{ 0x00004040, 0x40444850, 0x70484442, 0x00000000 },
{ 0x00003808, 0x08080808, 0x0808083E, 0x00000000 },
{ 0x00000000, 0x00774949, 0x49494949, 0x00000000 },
{ 0x00000000, 0x007C4242, 0x42424242, 0x00000000 },
{ 0x00000000, 0x003C4242, 0x4242423C, 0x00000000 },
{ 0x00000000, 0x007C4242, 0x4242427C, 0x40404000 },
{ 0x00000000, 0x003E4242, 0x4242423E, 0x02020200 },
{ 0x00000000, 0x002E3020, 0x20202020, 0x00000000 },
{ 0x00000000, 0x003E4020, 0x1804027C, 0x00000000 },
{ 0x00000010, 0x107E1010, 0x1010100E, 0x00000000 },
{ 0x00000000, 0x00424242, 0x4242423E, 0x00000000 },
{ 0x00000000, 0x00424242, 0x24241818, 0x00000000 },
{ 0x00000000, 0x00414141, 0x49495563, 0x00000000 },
{ 0x00000000, 0x00412214, 0x08142241, 0x00000000 },
{ 0x00000000, 0x00424242, 0x4242423E, 0x02023C00 },
{ 0x00000000, 0x007E0408, 0x1020407E, 0x00000000 },
{ 0x000E1010, 0x101010E0, 0x10101010, 0x100E0000 },
{ 0x00080808, 0x08080808, 0x08080808, 0x08080000 },
{ 0x00700808, 0x08080807, 0x08080808, 0x08700000 },
{ 0x00003149, 0x46000000, 0x00000000, 0x00000000 },
{ 0x00000000, 0x00000000, 0x00000000, 0x00000000 },


};

struct per_word_data {
Expand Down

0 comments on commit a99a6e3

Please sign in to comment.