From 9d683d341ddf438f3cf77fdea1f4d47d772475da Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 31 Jan 2005 17:40:03 +0000 Subject: Show unknown glyphs; this may lead to overlapping boxes when accents are 2005-01-31 Matthias Clasen * modules/hebrew/hebrew-fc.c (get_cluster_glyphs): Show unknown glyphs; this may lead to overlapping boxes when accents are involved, but it is better than text vanishing without any traces. --- ChangeLog | 7 +++++++ ChangeLog.pre-1-10 | 7 +++++++ modules/hebrew/hebrew-fc.c | 3 +++ 3 files changed, 17 insertions(+) diff --git a/ChangeLog b/ChangeLog index 790bbc08..b615cdbe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-01-31 Matthias Clasen + + * modules/hebrew/hebrew-fc.c (get_cluster_glyphs): Show + unknown glyphs; this may lead to overlapping boxes when + accents are involved, but it is better than text vanishing + without any traces. + 2005-01-25 Tor Lillqvist * pango/pango.def: Add missing entry points. diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index 790bbc08..b615cdbe 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,3 +1,10 @@ +2005-01-31 Matthias Clasen + + * modules/hebrew/hebrew-fc.c (get_cluster_glyphs): Show + unknown glyphs; this may lead to overlapping boxes when + accents are involved, but it is better than text vanishing + without any traces. + 2005-01-25 Tor Lillqvist * pango/pango.def: Add missing entry points. diff --git a/modules/hebrew/hebrew-fc.c b/modules/hebrew/hebrew-fc.c index cd9c8e8e..5f6c1885 100644 --- a/modules/hebrew/hebrew-fc.c +++ b/modules/hebrew/hebrew-fc.c @@ -74,6 +74,9 @@ get_cluster_glyphs(PangoFont *font, wc = mirrored_ch; glyph_num[i] = pango_fc_font_get_glyph ((PangoFcFont *)font, wc); + if (!glyph_num[i]) + glyph_num[i] = pango_fc_font_get_unknown_glyph ((PangoFcFont *)font, wc); + glyph[i] = glyph_num[i]; pango_font_get_glyph_extents (font, -- cgit v1.2.1