1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-11-25 17:41:32 +00:00

add emoji support

This commit is contained in:
Horhik 2020-12-03 23:11:20 +02:00
parent ae536f9825
commit bdefcd4619
9 changed files with 2 additions and 12 deletions

Binary file not shown.

View file

@ -139,11 +139,6 @@ xfont_create(Drw *drw, const char *fontname, FcPattern *fontpattern)
* https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916349 * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916349
* and lots more all over the internet. * 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;
}
font = ecalloc(1, sizeof(Fnt)); font = ecalloc(1, sizeof(Fnt));
font->xfont = xfont; font->xfont = xfont;

Binary file not shown.

View file

@ -11,7 +11,7 @@ static const unsigned int gappov = 20; /* vert outer gap between window
static const int smartgaps = 0; /* 1 means no outer gap when there is only one window */ static const int smartgaps = 0; /* 1 means no outer gap when there is only one window */
static const int showbar = 1; /* 0 means no bar */ static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */ static const int topbar = 1; /* 0 means bottom bar */
static const char *fonts[] = { "Mononoki Nerd Font:size=10"}; static const char *fonts[] = { "Mononoki Nerd Font:size=10", "JoyPixels:pixelsize=12:antialias=true:autohint=true" };
static const char dmenufont[] = "Mononoki Nerd Font:size=16"; static const char dmenufont[] = "Mononoki Nerd Font:size=16";
static const char col_gray1[] = "#282828"; static const char col_gray1[] = "#282828";
static const char col_gray2[] = "#928374"; static const char col_gray2[] = "#928374";

View file

@ -11,7 +11,7 @@ static const unsigned int gappov = 20; /* vert outer gap between window
static const int smartgaps = 0; /* 1 means no outer gap when there is only one window */ static const int smartgaps = 0; /* 1 means no outer gap when there is only one window */
static const int showbar = 1; /* 0 means no bar */ static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */ static const int topbar = 1; /* 0 means bottom bar */
static const char *fonts[] = { "Mononoki Nerd Font:size=10"}; static const char *fonts[] = { "Mononoki Nerd Font:size=10", "JoyPixels:pixelsize=12:antialias=true:autohint=true" };
static const char dmenufont[] = "Mononoki Nerd Font:size=16"; static const char dmenufont[] = "Mononoki Nerd Font:size=16";
static const char col_gray1[] = "#282828"; static const char col_gray1[] = "#282828";
static const char col_gray2[] = "#928374"; static const char col_gray2[] = "#928374";

View file

@ -140,11 +140,6 @@ xfont_create(Drw *drw, const char *fontname, FcPattern *fontpattern)
* https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916349 * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916349
* and lots more all over the internet. * 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;
}
font = ecalloc(1, sizeof(Fnt)); font = ecalloc(1, sizeof(Fnt));
font->xfont = xfont; font->xfont = xfont;

Binary file not shown.

Binary file not shown.

Binary file not shown.