remove extraneous font debugging code
Some of it didn't compile, and some of it was just unnecessary.
This commit is contained in:
parent
99c57674c0
commit
e896195eab
|
@ -158,11 +158,6 @@ QueueFontWakeup(FontPathElementPtr fpe)
|
|||
|
||||
for (i = 0; i < num_slept_fpes; i++) {
|
||||
if (slept_fpes[i] == fpe) {
|
||||
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr, "re-queueing fpe wakeup\n");
|
||||
#endif
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -2063,11 +2058,6 @@ init_fs_handlers(FontPathElementPtr fpe, BlockHandlerProcPtr block_handler)
|
|||
fs_handlers_installed = 0;
|
||||
}
|
||||
if (fs_handlers_installed == 0) {
|
||||
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr, "adding FS b & w handlers\n");
|
||||
#endif
|
||||
|
||||
if (!RegisterBlockAndWakeupHandlers(block_handler,
|
||||
FontWakeup, (pointer) 0))
|
||||
return AllocError;
|
||||
|
@ -2083,55 +2073,9 @@ remove_fs_handlers(FontPathElementPtr fpe, BlockHandlerProcPtr block_handler, Bo
|
|||
if (all) {
|
||||
/* remove the handlers if no one else is using them */
|
||||
if (--fs_handlers_installed == 0) {
|
||||
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr, "removing FS b & w handlers\n");
|
||||
#endif
|
||||
|
||||
RemoveBlockAndWakeupHandlers(block_handler, FontWakeup,
|
||||
(pointer) 0);
|
||||
}
|
||||
}
|
||||
RemoveFontWakeup(fpe);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#define GLWIDTHBYTESPADDED(bits,nbytes) \
|
||||
((nbytes) == 1 ? (((bits)+7)>>3) /* pad to 1 byte */ \
|
||||
:(nbytes) == 2 ? ((((bits)+15)>>3)&~1) /* pad to 2 bytes */ \
|
||||
:(nbytes) == 4 ? ((((bits)+31)>>3)&~3) /* pad to 4 bytes */ \
|
||||
:(nbytes) == 8 ? ((((bits)+63)>>3)&~7) /* pad to 8 bytes */ \
|
||||
: 0)
|
||||
|
||||
#define GLYPH_SIZE(ch, nbytes) \
|
||||
GLWIDTHBYTESPADDED((ch)->metrics.rightSideBearing - \
|
||||
(ch)->metrics.leftSideBearing, (nbytes))
|
||||
void
|
||||
dump_char_ascii(CharInfoPtr cip)
|
||||
{
|
||||
int r,
|
||||
l;
|
||||
int bpr;
|
||||
int byte;
|
||||
static unsigned maskTab[] = {
|
||||
(1 << 7), (1 << 6), (1 << 5), (1 << 4),
|
||||
(1 << 3), (1 << 2), (1 << 1), (1 << 0),
|
||||
};
|
||||
|
||||
bpr = GLYPH_SIZE(cip, 4);
|
||||
for (r = 0; r < (cip->metrics.ascent + cip->metrics.descent); r++) {
|
||||
pointer row = (pointer) cip->bits + r * bpr;
|
||||
|
||||
byte = 0;
|
||||
for (l = 0; l <= (cip->metrics.rightSideBearing -
|
||||
cip->metrics.leftSideBearing); l++) {
|
||||
if (maskTab[l & 7] & row[l >> 3])
|
||||
putchar('X');
|
||||
else
|
||||
putchar('.');
|
||||
}
|
||||
putchar('\n');
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user