diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-12-17 02:07:37 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-12-17 02:07:37 +0000 |
commit | 29243ced945eb68460f3e3b57ca390c1c2a93129 (patch) | |
tree | b1247bbc71481c2904fb2a4117c45f159947169b /pango | |
parent | 20b813ab225789782c942515e99bf50955975bec (diff) | |
download | pango-29243ced945eb68460f3e3b57ca390c1c2a93129.tar.gz |
When we get an isolated tone in isolation, do something reasonable rather
Mon Dec 16 19:28:18 2002 Owen Taylor <otaylor@redhat.com>
* 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.
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pangofc-fontmap.c | 12 | ||||
-rw-r--r-- | pango/pangofc-fontmap.cI | 12 |
2 files changed, 24 insertions, 0 deletions
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); diff --git a/pango/pangofc-fontmap.cI b/pango/pangofc-fontmap.cI index b5d9b722..f277e80e 100644 --- a/pango/pangofc-fontmap.cI +++ b/pango/pangofc-fontmap.cI @@ -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); |