[pango] [GSUB] More ligature/component fixing
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pango] [GSUB] More ligature/component fixing
- Date: Sun, 22 Nov 2009 23:26:52 +0000 (UTC)
commit b685d25141ba069d2494b17fada2ecedd6dd0df5
Author: Behdad Esfahbod <behdad behdad org>
Date: Sun Nov 22 18:24:54 2009 -0500
[GSUB] More ligature/component fixing
We can only reuse the ligid if it belongs to a previous ligature, not a
component!
Cherry-picked from harfbuzz-ng repo.
pango/opentype/hb-ot-layout-gsub-private.hh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pango/opentype/hb-ot-layout-gsub-private.hh b/pango/opentype/hb-ot-layout-gsub-private.hh
index 75ca150..d35aaff 100644
--- a/pango/opentype/hb-ot-layout-gsub-private.hh
+++ b/pango/opentype/hb-ot-layout-gsub-private.hh
@@ -388,8 +388,8 @@ struct Ligature
glyphs and the ligature already has an ID. */
_hb_buffer_add_output_glyphs (buffer, i,
1, (const uint16_t *) &ligGlyph,
- 0xFFFF,
- IN_LIGID (buffer->in_pos) ?
+ 0,
+ IN_LIGID (buffer->in_pos) && !IN_COMPONENT (buffer->in_pos) ?
0xFFFF : _hb_buffer_allocate_lig_id (buffer));
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]