From ff997a5ff2e561fbeac590b590bd8e7c6d2a920b Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Fri, 14 Nov 2025 12:29:18 -0600 Subject: apply boxdraw patch for perfect box-drawing character alignment Applied st-boxdraw_v2-0.8.5.diff with manual adjustments for st 0.9: - Added boxdraw.c to build sources - Added ATTR_BOXDRAW attribute flag (bit 13, after ATTR_SELECTED) - Integrated boxdraw detection in tsetchar() function - Modified xmakeglyphfontspecs() to use boxdraw for applicable characters - Adjusted indentation for harfbuzz integration compatibility Benefits: - Box-drawing characters now align perfectly regardless of font - Improved visual quality for tmux, tree, dialog output - Covers Unicode U2500-U259F (lines/blocks) and U28XX (braille) --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a806b23..508a5b9 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ include config.mk -SRC = st.c x.c hb.c +SRC = st.c x.c hb.c boxdraw.c OBJ = $(SRC:.c=.o) all: options st @@ -24,6 +24,7 @@ config.h: st.o: config.h st.h win.h x.o: arg.h config.h st.h win.h hb.h hb.o: st.h +boxdraw.o: config.h st.h boxdraw_data.h $(OBJ): config.h config.mk -- cgit v1.2.3