commit 43e289f1cadabd2253ab0a56e66dc32deca92202
Author: Alexander Rogachev <[email protected]>
Date:   Sun Apr 5 19:11:59 2020 +0300

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

diff --git a/st.suckless.org/patches/ligatures/index.md 
b/st.suckless.org/patches/ligatures/index.md
index 31531d79..1a91dc06 100644
--- 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
index 504f2785..830d4f97 100644
--- 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
index b9d8ac04..815df913 100644
--- 
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.


Reply via email to