From 656b47f6988e001c5b6fdfee7a38dc8321e71454 Mon Sep 17 00:00:00 2001 From: Patrick Lam Date: Tue, 21 Feb 2006 15:56:41 +0000 Subject: [PATCH] Pass the buck; make fontconfig not crash on pango badness. --- ChangeLog | 5 +++++ src/fcfreetype.c | 4 ++++ 2 files changed, 9 insertions(+) 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 */ -- 2.39.5