From 61169f2f233f7262e1c72eb09d75fa4698e40886 Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 23 Apr 2010 03:55:22 +0000 Subject: [PATCH] (enum GlyphInfoMask): Shift upper masks 1-bit left. (decode_packed_otf_tag): If a glyph has combining information, don't touch it. (run_otf): --- src/m17n-flt.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/m17n-flt.c b/src/m17n-flt.c index e9ac45f..65970d4 100644 --- a/src/m17n-flt.c +++ b/src/m17n-flt.c @@ -257,9 +257,9 @@ enum GlyphInfoMask { CategoryCodeMask = 0x7F, CombiningCodeMask = 0xFFFFFF, - CombinedMask = 1 << 27, - LeftPaddingMask = 1 << 28, - RightPaddingMask = 1 << 29 + CombinedMask = 1 << 28, + LeftPaddingMask = 1 << 29, + RightPaddingMask = 1 << 30 }; #define SET_GLYPH_INFO(g, mask, ctx, info) \ @@ -1875,6 +1875,8 @@ decode_packed_otf_tag (FontLayoutContext *ctx, MFLTGlyphString *gstring, unsigned int tag = g->internal & 0xFFFFFFF; char enc; + if (GET_COMBINED (g)) + continue; if (! category) { SET_CATEGORY_CODE (g, 0); -- 1.7.10.4