diff options
| author | Shivesh Mandalia <mail@shivesh.org> | 2021-09-26 20:56:40 +0100 |
|---|---|---|
| committer | Shivesh Mandalia <mail@shivesh.org> | 2021-09-26 20:56:40 +0100 |
| commit | 446b356f707b1e56811ca89caa27fb083b6611d4 (patch) | |
| tree | 79d5e0d125c82e92f9633db83c93793bea971ef4 /x.c | |
| parent | 04b562e98a947f6b4b036481ff01c1f59e1f2681 (diff) | |
| download | st-446b356f707b1e56811ca89caa27fb083b6611d4.tar.gz st-446b356f707b1e56811ca89caa27fb083b6611d4.zip | |
Revert ligature support patch
Diffstat (limited to 'x.c')
| -rw-r--r-- | x.c | 16 |
1 files changed, 3 insertions, 13 deletions
@@ -19,7 +19,6 @@ char *argv0; #include "arg.h" #include "st.h" #include "win.h" -#include "hb.h" /* types used in config.h */ typedef struct { @@ -1135,9 +1134,6 @@ xunloadfont(Font *f) void xunloadfonts(void) { - /* Clear Harfbuzz font cache. */ - hbunloadfonts(); - /* Free the loaded fonts in the font cache. */ while (frclen > 0) XftFontClose(xw.dpy, frc[--frclen].font); @@ -1340,7 +1336,7 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x mode = glyphs[i].mode; /* Skip dummy wide-character spacing. */ - if (mode & ATTR_WDUMMY) + if (mode == ATTR_WDUMMY) continue; /* Determine font for glyph if different from previous glyph. */ @@ -1447,9 +1443,6 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x numspecs++; } - /* Harfbuzz transformation for ligatures. */ - hbtransform(specs, glyphs, len, x, y); - return numspecs; } @@ -1599,17 +1592,14 @@ xdrawglyph(Glyph g, int x, int y) } void -xdrawcursor(int cx, int cy, Glyph g, int ox, int oy, Glyph og, Line line, int len) +xdrawcursor(int cx, int cy, Glyph g, int ox, int oy, Glyph og) { Color drawcol; /* remove the old cursor */ if (selected(ox, oy)) og.mode ^= ATTR_REVERSE; - - /* Redraw the line where cursor was previously. - * It will restore the ligatures broken by the cursor. */ - xdrawline(line, 0, oy, len); + xdrawglyph(og, ox, oy); if (IS_SET(MODE_HIDE)) return; |
