aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDawid Potocki <dawid@dawidpotocki.com>2022-07-14 22:47:58 +1200
committerDawid Potocki <dawid@dawidpotocki.com>2022-07-14 22:47:58 +1200
commit8b6aeac39ef54acd001717814b4c922347ce3c8b (patch)
tree0f2bc5a0d3177bd24783e882e363656a87bd2a02
parentdd3dfe2eacf6d4e1955542146065bdf32ccbb886 (diff)
Add colour emoji supportHEADmaster
-rw-r--r--README.md2
-rw-r--r--config.h3
-rw-r--r--drw.c10
3 files changed, 9 insertions, 6 deletions
diff --git a/README.md b/README.md
index d5cb887..4c90856 100644
--- a/README.md
+++ b/README.md
@@ -8,6 +8,8 @@ Make sure you have dependencies installed before you build dmenu.
### Dependencies
+`libxft-bgra`<sup>AUR</sup> is required for colour emoji support.
+
```sh
$ sudo pacman -S libxinerama libxft # Arch Linux
```
diff --git a/config.h b/config.h
index 6b93f58..11b8978 100644
--- a/config.h
+++ b/config.h
@@ -6,7 +6,8 @@ static const char *prompt = NULL; /* -p option; prompt to the left of input fi
/* -fn option overrides fonts[0]; default X11 font or font set */
static const char *fonts[] = {
- "monospace:pixelsize=15:antialias=true:hintstyle=hintmedium"
+ "monospace:pixelsize=15:antialias=true:hintstyle=hintmedium",
+ "emoji:pixelsize=15"
};
static const char *colors[SchemeLast][2] = {
diff --git a/drw.c b/drw.c
index 4cdbcbe..8783a42 100644
--- a/drw.c
+++ b/drw.c
@@ -140,11 +140,11 @@ xfont_create(Drw *drw, const char *fontname, FcPattern *fontpattern)
* https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916349
* and lots more all over the internet.
*/
- FcBool iscol;
- if(FcPatternGetBool(xfont->pattern, FC_COLOR, 0, &iscol) == FcResultMatch && iscol) {
- XftFontClose(drw->dpy, xfont);
- return NULL;
- }
+ /* FcBool iscol; */
+ /* if(FcPatternGetBool(xfont->pattern, FC_COLOR, 0, &iscol) == FcResultMatch && iscol) { */
+ /* XftFontClose(drw->dpy, xfont); */
+ /* return NULL; */
+ /* } */
font = ecalloc(1, sizeof(Fnt));
font->xfont = xfont;