st-flexipatch

My st-flexipatch configuration
git clone git://git.ethandl.dev/st-flexipatch
Log | Files | Refs | README | LICENSE

commit ba7f4f98e27d30c5a606ef30f529fcb661f131fe
parent ad7e16b38ac2774c2f8f9f6522c3625019ad2d0f
Author: bakkeby <bakkeby@gmail.com>
Date:   Mon, 24 May 2021 13:36:14 +0200

ligatures: addressing boxdraw compatibility issue ref. #29

Diffstat:
Mhb.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git 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;