parent
039f127857
commit
aabc6c2b14
3 changed files with 21 additions and 38 deletions
2
build.sh
2
build.sh
|
@ -7,3 +7,5 @@ for patch in patches/*.diff; do
|
|||
patch -d st-final <"$patch"
|
||||
done
|
||||
cp -f config.h st-final/
|
||||
cd st-final || exit 1
|
||||
make
|
||||
|
|
19
patches/font-features.diff
Normal file
19
patches/font-features.diff
Normal file
|
@ -0,0 +1,19 @@
|
|||
--- a/hb.c
|
||||
+++ b/hb.c
|
||||
@@ -27,7 +27,15 @@ static HbFontMatch *hbfontcache = NULL;
|
||||
* e. g.
|
||||
* FEATURE('c', 'a', 'l', 't'), FEATURE('d', 'l', 'i', 'g')
|
||||
*/
|
||||
-hb_feature_t features[] = { 0 };
|
||||
+hb_feature_t features[] = {
|
||||
+ FEATURE('c','v','0','2'),
|
||||
+ FEATURE('c','v','1','6'),
|
||||
+ FEATURE('s','s','0','2'),
|
||||
+ FEATURE('s','s','0','3'),
|
||||
+ FEATURE('s','s','0','7'),
|
||||
+ FEATURE('s','s','0','8'),
|
||||
+ FEATURE('s','s','0','9'),
|
||||
+};
|
||||
|
||||
void
|
||||
hbunloadfonts()
|
|
@ -1,39 +1,3 @@
|
|||
diff --git a/config.def.h b/config.def.h
|
||||
index 27c811e..205478f 100644
|
||||
--- a/config.def.h
|
||||
+++ b/config.def.h
|
||||
@@ -152,7 +152,7 @@ static const char *colorname[] = {
|
||||
|
||||
/* more colors can be added after 255 to use with DefaultXX */
|
||||
"#add8e6", /* 256 -> cursor */
|
||||
- "#555555", /* 257 -> rev cursor*/
|
||||
+ "#2e3440", /* 257 -> rev cursor*/
|
||||
"#000000", /* 258 -> bg */
|
||||
"#e5e5e5", /* 259 -> fg */
|
||||
};
|
||||
@@ -160,13 +160,18 @@ static const char *colorname[] = {
|
||||
|
||||
/*
|
||||
* Default colors (colorname index)
|
||||
- * foreground, background, cursor, reverse cursor
|
||||
++ * foreground, background, cursor, reverse cursor, selection
|
||||
*/
|
||||
unsigned int defaultbg = 0;
|
||||
unsigned int bg = 17, bgUnfocused = 16;
|
||||
unsigned int defaultfg = 259;
|
||||
unsigned int defaultcs = 256;
|
||||
-unsigned int defaultrcs = 257;
|
||||
+unsigned int defaultrcs = 256;
|
||||
+unsigned int selectionbg = 257;
|
||||
+unsigned int selectionfg = 7;
|
||||
+/* If 0 use selectionfg as foreground in order to have a uniform foreground-color */
|
||||
+/* Else if 1 keep original foreground-color of each cell => more colors :) */
|
||||
+static int ignoreselfg = 1;
|
||||
|
||||
|
||||
/*
|
||||
diff --git a/st.h b/st.h
|
||||
index 0810857..488ec5e 100644
|
||||
--- a/st.h
|
||||
+++ b/st.h
|
||||
@@ -43,6 +43,7 @@ enum glyph_attribute {
|
||||
|
@ -44,8 +8,6 @@ index 0810857..488ec5e 100644
|
|||
ATTR_BOLD_FAINT = ATTR_BOLD | ATTR_FAINT,
|
||||
ATTR_DIRTYUNDERLINE = 1 << 15,
|
||||
};
|
||||
diff --git a/x.c b/x.c
|
||||
index c6313a3..5f12039 100644
|
||||
--- a/x.c
|
||||
+++ b/x.c
|
||||
@@ -1568,6 +1568,12 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
|
Loading…
Add table
Reference in a new issue