From 2c2e0188f7dc29946483b83d088e4f35c3a9069c Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Mon, 10 Apr 2023 21:44:33 +0200 Subject: add font rendering --- config.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index ec469be..d279ed3 100644 --- a/config.h +++ b/config.h @@ -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; /* -- cgit v1.2.3-70-g09d2