From 9d37495257005a9c45c7d7b85244796508494c16 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 1 Jul 2021 14:20:20 +0200 Subject: Added font smitching to FiraMono instead of FiraCode on carbon laptop --- config.def.h | 4 ++++ config.h | 4 ++++ config.mk | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/config.def.h b/config.def.h index f12e606..485143d 100644 --- a/config.def.h +++ b/config.def.h @@ -5,7 +5,11 @@ * * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html */ +#ifdef CACHARLE_CARBON +static char *font = "Fira Mono:pixelsize=12:antialias=true:autohint=true"; +#else static char *font = "Fira Code:pixelsize=12:antialias=true:autohint=true"; +#endif static int borderpx = 0; static char *font2[] = { diff --git a/config.h b/config.h index f12e606..485143d 100644 --- a/config.h +++ b/config.h @@ -5,7 +5,11 @@ * * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html */ +#ifdef CACHARLE_CARBON +static char *font = "Fira Mono:pixelsize=12:antialias=true:autohint=true"; +#else static char *font = "Fira Code:pixelsize=12:antialias=true:autohint=true"; +#endif static int borderpx = 0; static char *font2[] = { diff --git a/config.mk b/config.mk index 595c5f0..75c3638 100644 --- a/config.mk +++ b/config.mk @@ -29,6 +29,10 @@ STCPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600 STCFLAGS = $(INCS) $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS) STLDFLAGS = $(LIBS) $(LDFLAGS) +ifeq ($(shell uname -n), charleslaptopcarbon) + STCFLAGS += -DCACHARLE_CARBON +endif + # OpenBSD: #CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600 -D_BSD_SOURCE #LIBS = -L$(X11LIB) -lm -lX11 -lutil -lXft \ -- cgit