00001
00007 #ifdef HAVE_CONFIG_H
00008 # include <config.h>
00009 #endif
00010
00011 #include <fstream>
00012 #include <iostream>
00013 #ifdef MACOS
00014 #include <cassert>
00015 #endif
00016 #include "fontvga.h"
00017 #include "fnames.h"
00018 #ifndef ALPHA_LINUX_CXX
00019 # include <cctype>
00020 #endif
00021 #include "utils.h"
00022
00023 using std::cout;
00024 using std::endl;
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052 static int hlead[NUM_FONTS] = {-2, -1, 0, -1, 0, 0, -1, -2, -1, -1, 0, 0};
00053
00054
00055
00056
00057 void Fonts_vga_file::init
00058 (
00059 )
00060 {
00061 int cnt = sizeof(fonts)/sizeof(fonts[0]);
00062 const char *fname = U7exists(PATCH_FONTS) ? PATCH_FONTS : FONTS_VGA;
00063 for (int i = 0; i < cnt; i++)
00064 fonts[i].load(fname, i, hlead[i], 0);
00065 }
00066