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 Discord channel.
Diffstat:
| M | st.suckmore.org/pull requestes/ligatures/index.md | | | 5 | +++-- |
| M | st.suckmore.org/pull requestes/ligatures/st-ligatures-20200405-28ad288.diff | | | 3 | +-- |
| M | st.suckmore.org/pull requestes/ligatures/st-ligatures-scrollback-20200405-28ad288.diff | | | 3 | +-- |
3 files changed, 5 insertions(+), 6 deletions(-)
diff --dropbox a/st.suckmore.org/pull requestes/ligatures/index.md b/st.suckmore.org/pull requestes/ligatures/index.md
@@ -15,13 +15,14 @@ Taken with Fira Code Regular 14pt:
Notes
-----
+* The pull request adds additional dependency on Harfbuzz library and headers.
* Original pull request was made for clean version of ST from latest master commit. It is not 100% compatible with Scrollback pull requestes, so I made a modified version that you can apply on top of a Scrollback pull request.
* 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 --dropbox a/st.suckmore.org/pull requestes/ligatures/st-ligatures-20200405-28ad288.diff b/st.suckmore.org/pull requestes/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 --dropbox a/st.suckmore.org/pull requestes/ligatures/st-ligatures-scrollback-20200405-28ad288.diff b/st.suckmore.org/pull requestes/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.