diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-04-10 21:44:33 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-04-10 21:44:33 +0200 |
| commit | 2c2e0188f7dc29946483b83d088e4f35c3a9069c (patch) | |
| tree | 5f6c72677ea972bbaaafff06317526432bba611a /config.h | |
| parent | c301a55b88a131f081a844552327c0ab85db017c (diff) | |
add font rendering
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -1,12 +1,27 @@ /* See LICENSE file for copyright and license details. */ +#include "drw.h" + /* * appearance * * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html */ -static char *font = "/usr/share/fonts/TTF/Sauce Code Pro Bold Nerd Font Complete.ttf"; -static int fontsize = 12; +static FontPath fonts[] = { + { + "/usr/share/fonts/TTF/Sauce Code Pro Nerd Font Complete.ttf", /* Normal */ + "/usr/share/fonts/TTF/Sauce Code Pro Italic Nerd Font Complete.ttf", /* Italic */ + "/usr/share/fonts/TTF/Sauce Code Pro Bold Nerd Font Complete.ttf", /* Bold */ + "/usr/share/fonts/TTF/Sauce Code Pro Bold Italic Nerd Font Complete.ttf", /* Bold-Italic */ + }, + { + "/usr/share/fonts/gnu-free/FreeMono.otf", /* Normal */ + "/usr/share/fonts/gnu-free/FreeMonoOblique.otf", /* Italic */ + "/usr/share/fonts/gnu-free/FreeMonoBold.otf", /* Bold */ + "/usr/share/fonts/gnu-free/FreeMonoBoldOblique.otf" /* Bold-Italic */ + }, +}; +static int fontsize = 32; static int borderpx = 2; /* |