From ba7f4f98e27d30c5a606ef30f529fcb661f131fe Mon Sep 17 00:00:00 2001 From: bakkeby Date: Mon, 24 May 2021 13:36:14 +0200 Subject: [PATCH] ligatures: addressing boxdraw compatibility issue ref. #29 --- hb.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hb.c b/hb.c index 38214c2..f222445 100644 --- a/hb.c +++ b/hb.c @@ -89,6 +89,13 @@ hbtransform(XftGlyphFontSpec *specs, const Glyph *glyphs, size_t len, int x, int if (glyphs[i].mode & ATTR_WDUMMY) continue; + #if BOXDRAW_PATCH + if (glyphs[i].mode & ATTR_BOXDRAW) { + specidx++; + continue; + } + #endif + if (codepoints[i] != specs[specidx].glyph) ((Glyph *)glyphs)[i].mode |= ATTR_LIGA;