fork download
  1. typedef unsigned char byte;
  2.  
  3. struct s_font_char {
  4. byte map[64][256];
  5. };
  6.  
  7. struct s_font {
  8. char name[50];
  9. struct s_font_char chars[36];
  10. };
  11.  
  12. struct s_font all_fonts[] = {
  13. /* first font */
  14. {
  15. /* name */
  16. "Font number 1",
  17. /* chars array */
  18. {
  19. /* first character */
  20. {
  21. /* first element */
  22. { 0, 1, 2, 3, },
  23. /* second element, and so on */
  24. /* ... */
  25. },
  26. /* second character, and so on */
  27. /* ... */
  28. },
  29. },
  30. /* second font, and so on */
  31. /* ... */
  32. };
  33.  
  34. int main(void) { return 0; }
Success #stdin #stdout 0.01s 2292KB
stdin
Standard input is empty
stdout
Standard output is empty