use new font system from drw

This commit is contained in:
Markus Teich
2015-04-20 22:20:16 +02:00
parent 76d3b0bb95
commit 85d25716b0
2 changed files with 40 additions and 34 deletions

View File

@ -2,8 +2,12 @@
/* The three fields set to 0 have to stay that way for a scalable font */
static char *font = "-*-dejavu sans condensed-bold-r-*-*-0-0-*-*-*-0-*-*";
#define NUMFONTS 30
#define FONTSZ(x) ((int)(100.0 * powf(1.1288, (x)))) /* x in [0, NUMFONTS-1] */
static char *fontfallbacks[] = {
"dejavu",
"trollolo",
};
#define NUMFONTSCALES 30
#define FONTSZ(x) ((int)(10.0 * powf(1.1288, (x)))) /* x in [0, NUMFONTSCALES-1] */
/* how much screen estate is to be used at max for the content */
static float usablewidth = 0.75;