@@ -549,6 +549,26 @@ sti_select_fbfont(struct sti_cooked_rom *cooked_rom, const char *fbfont_name)
549549}
550550#endif
551551
552+ static void sti_dump_font (struct sti_cooked_font * font )
553+ {
554+ #ifdef STI_DUMP_FONT
555+ unsigned char * p = (unsigned char * )font -> raw ;
556+ int n ;
557+
558+ p += sizeof (struct sti_rom_font );
559+ pr_debug (" w %d h %d bpc %d\n" , font -> width , font -> height ,
560+ font -> raw -> bytes_per_char );
561+
562+ for (n = 0 ; n < 256 * font -> raw -> bytes_per_char ; n += 16 , p += 16 ) {
563+ pr_debug (" 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x,"
564+ " 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x,"
565+ " 0x%02x, 0x%02x, 0x%02x, 0x%02x,\n" ,
566+ p [0 ], p [1 ], p [2 ], p [3 ], p [4 ], p [5 ], p [6 ], p [7 ], p [8 ],
567+ p [9 ], p [10 ], p [11 ], p [12 ], p [13 ], p [14 ], p [15 ]);
568+ }
569+ #endif
570+ }
571+
552572static int sti_search_font (struct sti_cooked_rom * rom , int height , int width )
553573{
554574 struct sti_cooked_font * font ;
@@ -796,6 +816,7 @@ static int sti_read_rom(int wordmode, struct sti_struct *sti,
796816 sti -> font -> width = sti -> font -> raw -> width ;
797817 sti -> font -> height = sti -> font -> raw -> height ;
798818 sti_font_convert_bytemode (sti , sti -> font );
819+ sti_dump_font (sti -> font );
799820
800821 sti -> sti_mem_request = raw -> sti_mem_req ;
801822 sti -> graphics_id [0 ] = raw -> graphics_id [0 ];
0 commit comments