4 Commits

Author SHA1 Message Date
Fabian Schmidt
90fbac1579 Changed fallback font size 2020-05-26 18:26:58 +02:00
Fabian Schmidt
97c4cd5627 Added ttf-joypixels to fonts 2020-05-26 18:11:53 +02:00
Fabian Schmidt
922728536b Added fallback fonts 2020-05-23 14:30:52 +02:00
Fabian Schmidt
b672675ae6 Added support for fallback fonts 2020-05-23 12:36:29 +02:00
3 changed files with 118 additions and 291 deletions

View File

@@ -5,7 +5,14 @@
* *
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/ */
static char *font = "SauceCodePro Nerd Font Mono:pixelsize=15:antialias=true:autohint=true"; static char *font = "Liberation Mono:pixelsize=15:antialias=true:autohint=true";
/* Spare fonts */
static char *font2[] = {
"DejaVuSansMono Nerd Font Mono:pixelsize=14:antialias=true:autohint=true",
"Inconsolata for Powerline:pixelsize=15:antialias=true:autohint=true",
"JoyPixels:pixelsize=14:antialias=true:autohint=true"
};
static int borderpx = 2; static int borderpx = 2;
/* /*
@@ -34,7 +41,7 @@ static float chscale = 1.0;
* *
* More advanced example: L" `'\"()[]{}" * More advanced example: L" `'\"()[]{}"
*/ */
wchar_t *worddelimiters = L" `'\"()[]{}"; wchar_t *worddelimiters = L" ";
/* selection timeouts (in milliseconds) */ /* selection timeouts (in milliseconds) */
static unsigned int doubleclicktimeout = 300; static unsigned int doubleclicktimeout = 300;
@@ -87,29 +94,29 @@ char *termname = "st-256color";
* *
* stty tabs * stty tabs
*/ */
unsigned int tabspaces = 4; unsigned int tabspaces = 8;
/* Terminal colors (16 first used in escape sequence) */ /* Terminal colors (16 first used in escape sequence) */
static const char *colorname[] = { static const char *colorname[] = {
/* 8 normal colors */ /* 8 normal colors */
"#0c0d0e", "black",
"#e31a1c", "red3",
"#31a354", "green3",
"#dca060", "yellow3",
"#3182db", "blue2",
"#756bb1", "magenta3",
"#80b1d3", "cyan3",
"#b7b8b9", "gray90",
/* 8 bright colors */ /* 8 bright colors */
"#737475", "gray50",
"#e31a1c", "red",
"#31a354", "green",
"#dca060", "yellow",
"#3182db", "#5c5cff",
"#756bb1", "magenta",
"#80b1d3", "cyan",
"#fcfdfe", "white",
[255] = 0, [255] = 0,

View File

@@ -47,7 +47,7 @@ st-mono| simpleterm monocolor,
indn=\E[%p1%dS, indn=\E[%p1%dS,
invis=\E[8m, invis=\E[8m,
is2=\E[4l\E>\E[?1034l, is2=\E[4l\E>\E[?1034l,
it#4, it#8,
kel=\E[1;2F, kel=\E[1;2F,
ked=\E[1;5F, ked=\E[1;5F,
ka1=\E[1~, ka1=\E[1~,

360
x.c

File diff suppressed because it is too large Load Diff