speedie 2022-12-05 20:10:13 +01:00
parent 186cf03d68
commit 99dfaf066f
3 changed files with 6 additions and 8 deletions

View file

@ -12,8 +12,9 @@
*/
static char *font[] = {
"Fantasque Sans Mono:size=8:style=Bold:antialias=true:autohint=true",
"Terminus:size=8:style=Bold:antialias=true:autohint=true",
"DejaVu Sans Mono:size=8:antialias=true:autohint=true",
"Noto Color Emoji:size=8:antialias=true:autohint=true",
"Noto Color Emoji:size=7:antialias=true:autohint=true",
"fontawesome:size=8:antialias=true:autohint=true",
};
@ -62,8 +63,8 @@ static unsigned int cursorthickness = 2; /* Cursor thickness in pixels */
* Bold affects lines thickness if boxdraw_bold is not 0. Italic is ignored.
* 0: Disable boxdraw (render all U25XX glyphs normally from the font).
*/
int boxdraw = 0; /* Enable boxdraw */
int boxdraw_bold = 0; /* Draw boxdraw bold */
int boxdraw = 1; /* Enable boxdraw */
int boxdraw_bold = 1; /* Draw boxdraw bold */
int boxdraw_braille = 0; /* Render braille as adjecent pixels */
/* Undercurl options

6
x.c
View file

@ -1144,7 +1144,7 @@ xloadsparefont(FcPattern *pattern, int flags)
FcPattern *match;
FcResult result;
match = FcFontMatch(NULL, pattern, &result);
match = XftFontMatch(xw.dpy, xw.scr, pattern, &result);
if (!match) {
return 1;
}
@ -1574,10 +1574,6 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x
fccharset);
FcPatternAddBool(fcpattern, FC_SCALABLE, 1);
FcConfigSubstitute(0, fcpattern,
FcMatchPattern);
FcDefaultSubstitute(fcpattern);
fontpattern = FcFontSetMatch(0, fcsets, 1,
fcpattern, &fcres);

View file

@ -20,6 +20,7 @@ ResourcePref resources[] = {
{ "background", STRING, &colorname[256] },
{ "foreground", STRING, &colorname[257] },
{ "curcolor", STRING, &colorname[258] },
{ "cursorColor", STRING, &colorname[258] },
{ "termname", STRING, &termname },
{ "shell", STRING, &shell },
{ "understyle", STRING, &understyle },