ligatures: addressing boxdraw compatibility issue ref. #29

This commit is contained in:
bakkeby 2021-05-24 13:36:14 +02:00
parent ad7e16b38a
commit ba7f4f98e2

7
hb.c
View File

@ -89,6 +89,13 @@ hbtransform(XftGlyphFontSpec *specs, const Glyph *glyphs, size_t len, int x, int
if (glyphs[i].mode & ATTR_WDUMMY) if (glyphs[i].mode & ATTR_WDUMMY)
continue; continue;
#if BOXDRAW_PATCH
if (glyphs[i].mode & ATTR_BOXDRAW) {
specidx++;
continue;
}
#endif
if (codepoints[i] != specs[specidx].glyph) if (codepoints[i] != specs[specidx].glyph)
((Glyph *)glyphs)[i].mode |= ATTR_LIGA; ((Glyph *)glyphs)[i].mode |= ATTR_LIGA;