From 7020205df6d5d0b5d63849fcc55d72e415b256aa Mon Sep 17 00:00:00 2001 From: pixel Date: Tue, 8 Apr 2003 06:56:33 +0000 Subject: Reporting some error messages --- lib/font.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/font.cc b/lib/font.cc index d878399..12363aa 100644 --- a/lib/font.cc +++ b/lib/font.cc @@ -101,12 +101,14 @@ mogltk::ColorP colorcached[16] = { mogltk::font::font(Handle * ffont) : textcolor(255, 255, 255, 255), shadow(0), wspace(0) { int i, j; + printm(M_INFO, "Reading font header\n"); nbentries = ffont->readU16(); flags = ffont->readU8(); maxX = ffont->readU8(); maxY = ffont->readU8(); base = ffont->readU8(); inter = ffont->readU8(); + printm(M_INFO, "Reading at offset 0x%x\n", ffont->tell()); nbcU = 256 / maxX; nbcV = 256 / maxY; @@ -140,6 +142,7 @@ mogltk::font::font(Handle * ffont) : textcolor(255, 255, 255, 255), shadow(0), w Uint8 * curtex = (Uint8 *) fonttex[0]->GetSurface()->pixels; Uint32 curU = 0, curV = 0, curT = 0; for (i = 0; i < nbentries; i++) { + printm(M_INFO, "Reading entry %i at offset 0x%x\n", ffont->tell()); sizes[i] = ffont->readU8(); for (int v = 0; v < maxY; v++) { for (int u = 0; u < maxX; u++) { @@ -176,6 +179,7 @@ mogltk::font::font(Handle * ffont) : textcolor(255, 255, 255, 255), shadow(0), w corresp = (Uint16 *) malloc(nbentries * 2 * sizeof(Uint16)); for (i = 0; i < 2 * nbentries; i++) { + printm(M_INFO, "Reading translation entry number %i at offset 0x%x\n", i, ffont->tell()); corresp[i] = ffont->readU16(); } } -- cgit v1.2.3