summaryrefslogtreecommitdiff
path: root/pango/pangofc-fontmap.cI
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pangofc-fontmap.cI')
-rw-r--r--pango/pangofc-fontmap.cI12
1 files changed, 12 insertions, 0 deletions
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);