/* Hand composed "Minuscule" 4x6 font, with binary data generated using * Perl stub. * * Use 'perl -x mini_4x6.c < mini_4x6.c > new_version.c' to regenerate * binary data. * * Created by Kenneth Albanowski. * No rights reserved, released to the public domain. * * Version 1.0 */ /* #!/usr/bin/perl -pn s{((0x)?[0-9a-fA-F]+)(.*\[([\*\ ]{4})\])}{ ($num,$pat,$bits) = ($1,$3,$4); $bits =~ s/([^\s0])|(.)/ defined($1) + 0 /ge; $num = ord(pack("B8", $bits)); $num |= $num >> 4; $num = sprintf("0x%.2x", $num); #print "$num,$pat,$bits\n"; $num . $pat; }ge; __END__; */ /* Note: binary data consists of one byte for each row of each character top to bottom, character 0 to character 255, six bytes per character. Each byte contains the same four character bits in both nybbles. MSBit to LSBit = left to right. */ #include <linux/font.h> #define FONTDATAMAX … static const struct font_data fontdata_mini_4x6 = …; const struct font_desc font_mini_4x6 = …;