From 6f09a2de90f32ab175a6c6405c8fab4c7072224b Mon Sep 17 00:00:00 2001 From: Albert Cahalan Date: Fri, 21 Jan 2005 18:24:10 +0000 Subject: [PATCH] fd DOES need to be closed. Avoid Zapfino and Elvish Ring NFI. --- src/tuxpaint.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 1af78b6d8..84c60fa6c 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -6547,7 +6547,7 @@ static void loadfont_callback(const char *restrict const dir, unsigned dirlen, t int numfaces = TTF_FontFaces(font); if (numfaces != 1) printf("Found %d faces in %s, %s, %s\n", numfaces, files[i].str, family, style); - if(charset_works(font, gettext("jq")) && charset_works(font, gettext("JQ"))) + if(strcmp("Zapfino",family) && strcmp("Elvish Ring NFI",family) && charset_works(font, gettext("jq")) && charset_works(font, gettext("JQ"))) { if (num_font_styles==num_font_styles_max) { @@ -6573,7 +6573,7 @@ static void loadfont_callback(const char *restrict const dir, unsigned dirlen, t { #if 0 // THREADED_FONTS - printf("Font missing critical chars: %s, %s, %s\n", files[i].str, family, style); + printf("Font is too defective: %s, %s, %s\n", files[i].str, family, style); #endif } TTF_CloseFont(font); @@ -7050,7 +7050,7 @@ static void run_font_scanner(void) { // parent (or error -- but we're screwed in that case) font_socket_fd = sv[0]; -// close(sv[1]); + close(sv[1]); return; } nice(42); // be nice, letting the main thread get the CPU