Adding ligature patch

https://st.suckless.org/patches/ligatures/
-> st-ligatures-alpha-scrollback-0.9
This commit is contained in:
2023-12-31 14:12:55 +01:00
parent 94cd9d4927
commit 3454623c49
8 changed files with 317 additions and 120 deletions

14
hb.h Normal file
View File

@@ -0,0 +1,14 @@
#include <X11/Xft/Xft.h>
#include <hb.h>
#include <hb-ft.h>
typedef struct {
hb_buffer_t *buffer;
hb_glyph_info_t *glyphs;
hb_glyph_position_t *positions;
unsigned int count;
} HbTransformData;
void hbunloadfonts();
void hbtransform(HbTransformData *, XftFont *, const Glyph *, int, int);
void hbcleanup(HbTransformData *);