From: Patrick Lam Date: Tue, 21 Feb 2006 15:56:41 +0000 (+0000) Subject: Pass the buck; make fontconfig not crash on pango badness. X-Git-Tag: fc-2_3_94~6 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=656b47f6988e001c5b6fdfee7a38dc8321e71454;p=fontconfig.git Pass the buck; make fontconfig not crash on pango badness. --- diff --git a/ChangeLog b/ChangeLog index 1f71f06..78aa4ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-02-21 Diego Petten + * src/fcfreetype.c (FcFreeTypeCharIndex): + + Pass the buck; make fontconfig not crash on pango badness. + 2006-02-21 Patrick Lam * conf.d/10-fonts-persian.conf: diff --git a/src/fcfreetype.c b/src/fcfreetype.c index de20fd7..e3c5ef2 100644 --- a/src/fcfreetype.c +++ b/src/fcfreetype.c @@ -2312,6 +2312,10 @@ FcFreeTypeCharIndex (FT_Face face, FcChar32 ucs4) int p; initial = 0; + + if (!face) + return 0; + /* * Find the current encoding */