tvfont.c 4.34 KB
/*
 * File defining the tvfont, including all the data
 */
#include <PR/mbi.h>
#include <PR/sp.h>
#include "font.h"

static char tvfont_string[];
static Bitmap tvfont_bms[];
unsigned char tvfont_img[];

/*
 * This is the external symbol that defines the font to users
 */
Font tvfont = {8, 16, tvfont_string, tvfont_bms, tvfont_img};

/*
 * This is the converted bitmap image, generated by rgb2c
 */
#include "tvfont_img.h"

/*
 * The mapping string
 */
static char tvfont_string[] = "abcdefhiuvsnorm.klxz4321567890`!gjpqytw,EFGHKLNOPRSUVXZ@JM:WIYABCD'T\"+-=Q_/?()[]";

static Bitmap tvfont_bms[] = {
    { 8, 64, 0*8, 0*12, tvfont_img,   12,0 },
    { 8, 64, 1*8, 0*12, tvfont_img,   12,0 },
    { 8, 64, 2*8, 0*12, tvfont_img,   12,0 },
    { 8, 64, 3*8, 0*12, tvfont_img,   12,0 },
    { 8, 64, 4*8, 0*12, tvfont_img,   12,0 },
    { 8, 64, 5*8, 0*12, tvfont_img,   12,0 },
    { 8, 64, 6*8, 0*12, tvfont_img,   12,0 },
    { 7, 64, 7*8, 0*12, tvfont_img,   12,0 },

    { 8, 64, 0*8, 1*12, tvfont_img,   12,0 },
    { 8, 64, 1*8, 1*12, tvfont_img,   12,0 },
    { 8, 64, 2*8, 1*12, tvfont_img,   12,0 },
    { 8, 64, 3*8, 1*12, tvfont_img,   12,0 },
    { 8, 64, 4*8, 1*12, tvfont_img,   12,0 },
    { 8, 64, 5*8, 1*12, tvfont_img,   12,0 },
    { 9, 64, 6*8, 1*12, tvfont_img,   12,0 },
    { 6, 64, 7*8+1, 1*12, tvfont_img,   12,0 },

    { 8, 64, 0*8, 2*12, tvfont_img,   12,0 },
    { 8, 64, 1*8, 2*12, tvfont_img,   12,0 },
    { 8, 64, 2*8, 2*12, tvfont_img,   12,0 },
    { 8, 64, 3*8, 2*12, tvfont_img,   12,0 },
    { 8, 64, 4*8, 2*12, tvfont_img,   12,0 },
    { 8, 64, 5*8, 2*12, tvfont_img,   12,0 },
    { 8, 64, 6*8, 2*12, tvfont_img,   12,0 },
    { 8, 64, 7*8, 2*12, tvfont_img,   12,0 },

    { 8, 64, 0*8, 3*12, tvfont_img,   12,0 },
    { 8, 64, 1*8, 3*12, tvfont_img,   12,0 },
    { 8, 64, 2*8, 3*12, tvfont_img,   12,0 },
    { 8, 64, 3*8, 3*12, tvfont_img,   12,0 },
    { 8, 64, 4*8, 3*12, tvfont_img,   12,0 },
    { 8, 64, 5*8, 3*12, tvfont_img,   12,0 },
    { 7, 64, 6*8, 3*12, tvfont_img,   12,0 },
    { 7, 64, 7*8, 3*12, tvfont_img,   12,0 },

    { 8, 64, 0*8, 4*12, tvfont_img,   16,0 },
    { 8, 64, 1*8, 4*12, tvfont_img,   16,0 },
    { 8, 64, 2*8, 4*12, tvfont_img,   16,0 },
    { 8, 64, 3*8, 4*12, tvfont_img,   16,0 },
    { 8, 64, 4*8, 4*12, tvfont_img,   16,0 },
    { 8, 64, 5*8, 4*12, tvfont_img,   16,0 },
    { 9, 64, 6*8, 4*12, tvfont_img,   16,0 },
    { 6, 64, 7*8+1, 4*12, tvfont_img,   16,0 },

    { 8, 64, 0*8, 64+0*12, tvfont_img,   12,0 },
    { 8, 64, 1*8, 64+0*12, tvfont_img,   12,0 },
    { 8, 64, 2*8, 64+0*12, tvfont_img,   12,0 },
    { 8, 64, 3*8, 64+0*12, tvfont_img,   12,0 },
    { 8, 64, 4*8, 64+0*12, tvfont_img,   12,0 },
    { 8, 64, 5*8, 64+0*12, tvfont_img,   12,0 },
    { 8, 64, 6*8, 64+0*12, tvfont_img,   12,0 },
    { 8, 64, 7*8, 64+0*12, tvfont_img,   12,0 },

    { 8, 64, 0*8, 64+1*12, tvfont_img,   12,0 },
    { 8, 64, 1*8, 64+1*12, tvfont_img,   12,0 },
    { 8, 64, 2*8, 64+1*12, tvfont_img,   12,0 },
    { 8, 64, 3*8, 64+1*12, tvfont_img,   12,0 },
    { 8, 64, 4*8, 64+1*12, tvfont_img,   12,0 },
    { 8, 64, 5*8, 64+1*12, tvfont_img,   12,0 },
    { 8, 64, 6*8, 64+1*12, tvfont_img,   12,0 },
    { 8, 64, 7*8, 64+1*12, tvfont_img,   12,0 },

    { 7, 64, 0*8, 64+2*12, tvfont_img,   12,0 },
    { 9, 64, 1*8-1, 64+2*12, tvfont_img,   12,0 },
    { 6, 64, 2*8, 64+2*12, tvfont_img,   12,0 },
    { 9, 64, 3*8-1, 64+2*12, tvfont_img,   12,0 },
    { 7, 64, 4*8, 64+2*12, tvfont_img,   12,0 },
    { 9, 64, 5*8-1, 64+2*12, tvfont_img,   12,0 },
    { 8, 64, 6*8, 64+2*12, tvfont_img,   12,0 },
    { 8, 64, 7*8, 64+2*12, tvfont_img,   12,0 },

    { 8, 64, 0*8, 64+3*12, tvfont_img,   12,0 },
    { 8, 64, 1*8, 64+3*12, tvfont_img,   12,0 },
    { 7, 64, 2*8, 64+3*12, tvfont_img,   12,0 },
    { 9, 64, 3*8-1, 64+3*12, tvfont_img,   12,0 },
    { 7, 64, 4*8, 64+3*12, tvfont_img,   12,0 },
    { 9, 64, 5*8-1, 64+3*12, tvfont_img,   12,0 },
    { 8, 64, 6*8, 64+3*12, tvfont_img,   12,0 },
    { 8, 64, 7*8, 64+3*12, tvfont_img,   12,0 },

    { 8, 64, 0*8, 64+4*12+1, tvfont_img,   16,0 },
    { 8, 64, 1*8, 64+4*12+1, tvfont_img,   16,0 },
    { 8, 64, 2*8, 64+4*12+1, tvfont_img,   16,0 },
    { 8, 64, 3*8, 64+4*12+1, tvfont_img,   16,0 },
    { 8, 64, 4*8, 64+4*12+1, tvfont_img,   16,0 },
    { 8, 64, 5*8, 64+4*12+1, tvfont_img,   16,0 },
    { 8, 64, 6*8, 64+4*12+1, tvfont_img,   16,0 },
    { 8, 64, 7*8, 64+4*12+1, tvfont_img,   16,0 },

};