From 29243ced945eb68460f3e3b57ca390c1c2a93129 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Tue, 17 Dec 2002 02:07:37 +0000 Subject: When we get an isolated tone in isolation, do something reasonable rather Mon Dec 16 19:28:18 2002 Owen Taylor * modules/hangul/hangul-xft.c (render_isolated_tone): When we get an isolated tone in isolation, do something reasonable rather than just return no glyphs and causing an assertion failure. (#100625) * pango/pangofc-fontmap.cI (_pango_fc_font_map_get_coverage): Add a hack to force Hangul marks to be be rendered in the same font as base Hangul glyphs. --- pango/pangofc-fontmap.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'pango/pangofc-fontmap.c') diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c index b5d9b722..f277e80e 100644 --- a/pango/pangofc-fontmap.c +++ b/pango/pangofc-fontmap.c @@ -806,6 +806,18 @@ _pango_fc_font_map_get_coverage (PangoFontMap *fontmap, } } } + + /* Awful hack so Hangul Tone marks get rendered with the same + * font and in the same run as other Hangul characters. If a font + * covers the first composed Hangul glyph, then it is declared to cover + * the Hangul tone marks. This hack probably needs to be formalized + * by choosing fonts for scripts rather than individual code points. + */ + if (pango_coverage_get (coverage, 0xac00) == PANGO_COVERAGE_EXACT) + { + pango_coverage_set (coverage, 0x302e, PANGO_COVERAGE_EXACT); + pango_coverage_set (coverage, 0x302f, PANGO_COVERAGE_EXACT); + } pango_fc_font_map_set_coverage (fcfontmap, &key, coverage); -- cgit v1.2.1