]> git.eshelyaron.com Git - emacs.git/commitdiff
(fs_load_font): Don't set fontp->font_encoder to NULL
authorKenichi Handa <handa@m17n.org>
Thu, 2 Oct 2003 02:06:08 +0000 (02:06 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 2 Oct 2003 02:06:08 +0000 (02:06 +0000)
before calling find_ccl_program_func.  Call find_ccl_program_func
only when fontp->font_encoder is not NULL.

src/fontset.c

index 996631f1a59d9f109d5f202125d2641f3cf406b7..990c1bbb9fa5f8392b451902ceea1bea90c1f164 100644 (file)
@@ -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