font8x8: allow 1K font
authorAlan Cox <alan@etchedpixels.co.uk>
Sat, 1 Nov 2014 15:33:01 +0000 (15:33 +0000)
committerAlan Cox <alan@etchedpixels.co.uk>
Sat, 1 Nov 2014 15:33:01 +0000 (15:33 +0000)
We don't always want to blow 2K on fonts, so allow a 1K font option

Kernel/font8x8.c

index 0137312..c64d97f 100644 (file)
@@ -6,7 +6,11 @@
  *     System font for 8x8 pixels. From the Linux font_8x8.c
  */
 
+#ifdef CONFIG_FONT8X8SMALL
+#define FONTDATAMAX 1024
+#else
 #define FONTDATAMAX 2048
+#endif
 
 const unsigned char fontdata_8x8[FONTDATAMAX] = {
 
@@ -1290,6 +1294,7 @@ const unsigned char fontdata_8x8[FONTDATAMAX] = {
        0xfe, /* 11111110 */
        0x00, /* 00000000 */
 
+#ifndef CONFIG_FONT8X8SMALL
        /* 128 0x80 '\80' */
        0x7c, /* 01111100 */
        0xc6, /* 11000110 */
@@ -2569,7 +2574,7 @@ const unsigned char fontdata_8x8[FONTDATAMAX] = {
        0x00, /* 00000000 */
        0x00, /* 00000000 */
        0x00, /* 00000000 */
-
+#endif
 };
 
 #endif