From de5c0f39590946d6e4cfbf25040920ea5579a60b Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 2 Oct 2003 02:06:08 +0000 Subject: [PATCH] (fs_load_font): Don't set fontp->font_encoder to NULL before calling find_ccl_program_func. Call find_ccl_program_func only when fontp->font_encoder is not NULL. --- src/fontset.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/fontset.c b/src/fontset.c index 996631f1a59..990c1bbb9fa 100644 --- a/src/fontset.c +++ b/src/fontset.c @@ -690,9 +690,7 @@ fs_load_font (f, c, fontname, id, face) } } - fontp->font_encoder = (struct ccl_program *) 0; - - if (find_ccl_program_func) + if (! fontp->font_encoder && find_ccl_program_func) (*find_ccl_program_func) (fontp); /* If we loaded a font for a face that has fontset, record the face -- 2.39.2