gehe zum Quellcode dieser Datei
#define DEFAULT_SYMBOL 0xFFFD |
static void check_used |
( |
unsigned short * |
cp) | |
|
|
static |
Definiert in Zeile 114 der Datei font_8x16_pack.c.
117 for (i=0; i<128; i++)
119 unsigned short c = cp[i];
static unsigned short font_find_matching_glyph |
( |
int |
index) | |
|
|
static |
static unsigned short font_find_offset |
( |
unsigned short |
charcode) | |
|
|
static |
static void font_init_data |
( |
unsigned short * |
src, |
|
|
int |
st, |
|
|
int |
num |
|
) |
| |
|
static |
static int font_make_lookuptable |
( |
) | |
|
|
static |
Definiert in Zeile 133 der Datei font_8x16_pack.c.
135 int i, j, f = 0, cc = 0, r;
139 int ncp =
sizeof(
codepages)/(
sizeof(
unsigned short*));
145 for (j=0; j<ncp; j++)
153 printf(
"#ifndef GET_FONT_COMPRESSION_MODE\n\n");
154 printf(
"// This is a compressed version of font_8x16_uni.h produced by the tools/font_8x16_pack program\n\n");
155 printf(
"// Format of each character is 'FontData' structure, followed by FontData.size bytes of character data.\n\n");
156 printf(
"static unsigned char font_data[] = {\n");
177 if (matches != 65535)
189 for (j=top; j<16-bottom; j++)
227 printf(
"// font_data length: %d bytes\n", f);
231 printf(
"unsigned char fontdata_lookup[] = {\n ");
235 if ( ((i+1) & 0xf) == 0 )
241 printf(
"// lookup table length: %d bytes\n\n", fontdata_ltlength);
243 printf(
" /* font data byte distribution\n ");
244 for (i=0; i<256; i++)
247 if ( ((i+1) & 0xf) == 0 )
259 printf(
"// Offsets to font character data stored in the font_data array.\n\n");
260 printf(
"static unsigned short cp_common[] =\n{\n");
261 for (i=0; i<128; i++)
263 if ((i & 15) == 0)
printf(
" ");
265 if ((i & 15) == 15)
printf(
"\n");
269 for (j=0; j<ncp; j++)
273 for (i=0; i<128; i++)
275 if ((i & 15) == 0)
printf(
" ");
277 if ((i & 15) == 15)
printf(
"\n");
282 printf(
"\n// Array of pointers to codepage tables.\n\n");
283 printf(
"static unsigned short* codepages[] =\n{\n");
284 for (j=0; j<ncp; j++)
290 printf(
"\n// Codepage names for menu UI in gui.c (gui_font_enum).\n\n");
291 printf(
"int num_codepages = %d;\n",ncp);
292 printf(
"char* codepage_names[] =\n{\n");
293 for (j=0; j<ncp; j++)
298 printf(
"#endif // !GET_FONT_COMPRESSION_MODE\n\n");
302 printf(
"#define BUILTIN_FONT_RLE_COMPRESSED 1\n\n");
unsigned short char_codes[4096] |
unsigned char fdata_usage[256] |
unsigned char font_data[16384] |
unsigned short font_offsets[4096] |
unsigned char fontdata_lookup[256] |
int fontdata_ltlength = 0 |