[wiki] [sites] [st][ligatures] Clean up code and update links on wiki page. || Alexander Rogachev

From: <git_AT_suckless.org>
Date: Sun, 05 Apr 2020 18:12:35 +0200

commit 43e289f1cadabd2253ab0a56e66dc32deca92202
Author: Alexander Rogachev <sorryforbadname_AT_gmail.com>
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
_AT_@ -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
_AT_@ -45,7 +45,7 @@ new file mode 100644
 index 0000000..bb0bea8
 --- /dev/null
 +++ b/hb.c
-_AT_@ -0,0 +1,128 @@
+_AT_@ -0,0 +1,127 @@
 +#include <stdlib.h>
 +#include <stdio.h>
 +#include <math.h>
_AT_@ -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
_AT_@ -45,7 +45,7 @@ new file mode 100644
 index 0000000..bd3fb71
 --- /dev/null
 +++ b/hb.c
-_AT_@ -0,0 +1,128 @@
+_AT_@ -0,0 +1,127 @@
 +#include <stdlib.h>
 +#include <stdio.h>
 +#include <math.h>
_AT_@ -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.
Received on Sun Apr 05 2020 - 18:12:35 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 05 2020 - 18:12:47 CEST