AtomSoft
Well-Known Member
Hello everyone. I have used the GLCD Font creator to create a new font for my LCD but now i noticed that the FONT is supposed to be drawn from TOP to BOTTOM , and the code is for LEFT to RIGHT font.
I need help converting the whole thing to TOP to BOTTOM style. I dont know how to exactly go about it.
If you want to try. This is my font
I can copy entire font to textbox and turn each into a int using this code so far:
I need help converting the whole thing to TOP to BOTTOM style. I dont know how to exactly go about it.
If you want to try. This is my font
Code:
0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x5F, 0x00, 0x00, 0x00,
0x07, 0x07, 0x00, 0x07, 0x07,
0x14, 0x7F, 0x14, 0x7F, 0x14,
0x24, 0x2A, 0x7F, 0x2A, 0x12,
0x23, 0x13, 0x08, 0x64, 0x63,
0x36, 0x49, 0x49, 0x36, 0x40,
0x07, 0x07, 0x00, 0x00, 0x00,
0x3E, 0x41, 0x41, 0x00, 0x00,
0x41, 0x41, 0x3E, 0x00, 0x00,
0x0A, 0x04, 0x1F, 0x04, 0x0A,
0x08, 0x08, 0x3E, 0x08, 0x08,
0x00, 0x30, 0x70, 0x00, 0x00,
0x00, 0x18, 0x18, 0x18, 0x00,
0x00, 0x60, 0x60, 0x00, 0x00,
0x60, 0x10, 0x08, 0x04, 0x03,
0x3E, 0x41, 0x41, 0x41, 0x3E,
0x00, 0x42, 0x7F, 0x40, 0x00,
0x42, 0x61, 0x51, 0x49, 0x46,
0x22, 0x41, 0x49, 0x49, 0x36,
0x18, 0x14, 0x12, 0x7F, 0x10,
0x2F, 0x49, 0x49, 0x49, 0x31,
0x3C, 0x4A, 0x49, 0x49, 0x30,
0x41, 0x21, 0x11, 0x0D, 0x03,
0x36, 0x49, 0x49, 0x49, 0x36,
0x26, 0x49, 0x49, 0x49, 0x3E,
0x00, 0x6C, 0x6C, 0x00, 0x00,
0x00, 0x66, 0x6E, 0x00, 0x00,
0x00, 0x10, 0x28, 0x28, 0x44,
0x28, 0x28, 0x28, 0x28, 0x28,
0x00, 0x44, 0x28, 0x28, 0x10,
0x02, 0x51, 0x09, 0x06, 0x00,
0x7F, 0x5D, 0x23, 0x3D, 0x4F,
0x7C, 0x12, 0x11, 0x12, 0x7C,
0x7F, 0x49, 0x49, 0x49, 0x36,
0x3E, 0x41, 0x41, 0x41, 0x22,
0x7F, 0x41, 0x41, 0x22, 0x1C,
0x7F, 0x49, 0x49, 0x49, 0x41,
0x7F, 0x09, 0x09, 0x09, 0x00,
0x3E, 0x41, 0x49, 0x49, 0x3A,
0x7F, 0x08, 0x08, 0x08, 0x7F,
0x01, 0x7F, 0x01, 0x00, 0x00,
0x41, 0x41, 0x7F, 0x41, 0x41,
0x7F, 0x08, 0x14, 0x22, 0x41,
0x7F, 0x40, 0x40, 0x40, 0x40,
0x7F, 0x03, 0x04, 0x03, 0x7F,
0x7F, 0x04, 0x18, 0x20, 0x7F,
0x3E, 0x41, 0x41, 0x41, 0x3E,
0x7F, 0x09, 0x09, 0x09, 0x06,
0x3E, 0x41, 0x41, 0x21, 0x5E,
0x7F, 0x09, 0x09, 0x76, 0x00,
0x26, 0x49, 0x49, 0x49, 0x31,
0x01, 0x01, 0x7F, 0x01, 0x01,
0x3F, 0x40, 0x40, 0x40, 0x3F,
0x07, 0x38, 0x40, 0x38, 0x07,
0x7F, 0x60, 0x10, 0x60, 0x7F,
0x41, 0x22, 0x1C, 0x22, 0x41,
0x03, 0x0C, 0x70, 0x0C, 0x03,
0x41, 0x61, 0x59, 0x45, 0x43,
0x00, 0x00, 0x7F, 0x41, 0x41,
0x03, 0x04, 0x08, 0x10, 0x60,
0x41, 0x41, 0x7F, 0x00, 0x00,
0x0C, 0x02, 0x01, 0x02, 0x0C,
0x08, 0x08, 0x08, 0x08, 0x08,
0x00, 0x00, 0x07, 0x06, 0x00,
0x20, 0x54, 0x54, 0x54, 0x38,
0x3F, 0x44, 0x44, 0x44, 0x38,
0x38, 0x44, 0x44, 0x44, 0x00,
0x38, 0x44, 0x44, 0x44, 0x3F,
0x38, 0x54, 0x54, 0x54, 0x18,
0x10, 0x7E, 0x11, 0x02, 0x00,
0x0C, 0x4A, 0x4A, 0x4A, 0x3C,
0x7F, 0x08, 0x08, 0x08, 0x70,
0x04, 0x7D, 0x00, 0x00, 0x00,
0x20, 0x44, 0x7D, 0x00, 0x00,
0x7F, 0x10, 0x28, 0x44, 0x00,
0x7F, 0x00, 0x00, 0x00, 0x00,
0x7C, 0x04, 0x08, 0x04, 0x7C,
0x7C, 0x04, 0x04, 0x04, 0x78,
0x38, 0x44, 0x44, 0x44, 0x38,
0x7C, 0x14, 0x14, 0x18, 0x00,
0x0C, 0x12, 0x12, 0x7C, 0x40,
0x7C, 0x08, 0x04, 0x00, 0x00,
0x48, 0x54, 0x54, 0x24, 0x00,
0x08, 0x08, 0x7F, 0x08, 0x08,
0x3C, 0x40, 0x40, 0x40, 0x3C,
0x0C, 0x30, 0x40, 0x30, 0x0C,
0x7C, 0x40, 0x20, 0x40, 0x7C,
0x44, 0x28, 0x10, 0x28, 0x44,
0x0C, 0x50, 0x50, 0x7C, 0x00,
0x44, 0x64, 0x54, 0x4C, 0x00,
0x00, 0x08, 0x36, 0x41, 0x41,
0x00, 0x7F, 0x7F, 0x00, 0x00,
0x41, 0x41, 0x36, 0x08, 0x00,
0x30, 0x08, 0x30, 0x20, 0x18
I can copy entire font to textbox and turn each into a int using this code so far:
Code:
string[] hexValuesSplit = textBox1.Text.Split(',');
int ByteCount = hexValuesSplit.Length;
int[] MyValues = new int[ByteCount];
int[] NewValues = new int[ByteCount];
for (int x = 0; x < ByteCount - 1; x++)
{
MyValues[x] = Convert.ToInt32(hexValuesSplit[x].Trim(), 16);
}
Last edited: