Shape marks with base characters
Submitted by Owen Taylor
Link to original bug (#101406)
Description
The Hangul shaper uses fallback glyphs for the two tone-mark glyphs if the font doesn't have the tone mark. But if the font doesn't have the tone marks, it would normally get put into a different run (different font) from the base glyphs unless the Hangul font is the default font.
I put a hack into pangofc-fontmap.cI to deal with this, but we really need some general mechanism, which might involve new API of some sort.
(The get_coverage() method of PangoEngine was supposed to handle this, but it is no longer used with current font backends)
=== /* 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); }
Version: 1.1.x