sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 43e289f1cadabd2253ab0a56e66dc32deca92202
parent 65e91cadf79bdcacb89ec0e6ec5b5b1b46b6574a
Author: Alexander Rogachev <sorryforbadname@gmail.com>
Date:   Sun,  5 Apr 2020 19:11:59 +0300

[st][ligatures] Clean up code and update links on wiki page.

Diffstat:
Mst.suckless.org/patches/ligatures/index.md | 5+++--
Mst.suckless.org/patches/ligatures/st-ligatures-20200405-28ad288.diff | 3+--
Mst.suckless.org/patches/ligatures/st-ligatures-scrollback-20200405-28ad288.diff | 3+--
3 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/st.suckless.org/patches/ligatures/index.md b/st.suckless.org/patches/ligatures/index.md @@ -15,13 +15,14 @@ Taken with Fira Code Regular 14pt: Notes ----- +* The patch adds additional dependency on Harfbuzz library and headers. * Original patch was made for clean version of ST from latest master commit. It is not 100% compatible with Scrollback patches, so I made a modified version that you can apply on top of a Scrollback patch. * Due to some limitations in drawing engine, ligatures will break when crossing colors, font styles or selection. They will still render properly as separate symbols, just not as ligatures. Download -------- -* [st-ligatures](st-ligatures-20190404-28ad288.diff) -* [st-ligatures-scrollback](st-ligatures-scrollback-20190404-28ad288.diff) +* [st-ligatures](st-ligatures-20200405-28ad288.diff) +* [st-ligatures-scrollback](st-ligatures-scrollback-20200405-28ad288.diff) Authors ------- diff --git a/st.suckless.org/patches/ligatures/st-ligatures-20200405-28ad288.diff b/st.suckless.org/patches/ligatures/st-ligatures-20200405-28ad288.diff @@ -45,7 +45,7 @@ new file mode 100644 index 0000000..bb0bea8 --- /dev/null +++ b/hb.c -@@ -0,0 +1,128 @@ +@@ -0,0 +1,127 @@ +#include <stdlib.h> +#include <stdio.h> +#include <math.h> @@ -162,7 +162,6 @@ index 0000000..bb0bea8 + hb_shape(font, buffer, NULL, 0); + + // Get new glyph info. -+ unsigned int len = hb_buffer_get_length(buffer); + hb_glyph_info_t *info = hb_buffer_get_glyph_infos(buffer, NULL); + + // Write new codepoints. diff --git a/st.suckless.org/patches/ligatures/st-ligatures-scrollback-20200405-28ad288.diff b/st.suckless.org/patches/ligatures/st-ligatures-scrollback-20200405-28ad288.diff @@ -45,7 +45,7 @@ new file mode 100644 index 0000000..bd3fb71 --- /dev/null +++ b/hb.c -@@ -0,0 +1,128 @@ +@@ -0,0 +1,127 @@ +#include <stdlib.h> +#include <stdio.h> +#include <math.h> @@ -162,7 +162,6 @@ index 0000000..bd3fb71 + hb_shape(font, buffer, NULL, 0); + + // Get new glyph info. -+ unsigned int len = hb_buffer_get_length(buffer); + hb_glyph_info_t *info = hb_buffer_get_glyph_infos(buffer, NULL); + + // Write new codepoints.