Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 994 Bytes

changing_the_font_size_in_xwax.md

File metadata and controls

34 lines (24 loc) · 994 Bytes
layout title
default
Changing the font size in xwax

Update: instead of patching, you can use xwax's scalable UI as of version 1.4. See man xwax for information and examples.

In order to change the font sizes in xwax you have to slightly edit the source code before compiling xwax from this modified code. The file you need to edit is interface.c, within you will find several variable you can tweak to change the size of your fonts.

Open interface.c with a text editor and edit the following section of code:

/* Font definitions */

#define FONT "DejaVuSans.ttf"
#define FONT_SIZE 10
#define FONT_SPACE 15

#define EM_FONT "DejaVuSans-Oblique.ttf"

#define BIG_FONT "DejaVuSans-Bold.ttf"
#define BIG_FONT_SIZE 14
#define BIG_FONT_SPACE 19

#define CLOCK_FONT FONT
#define CLOCK_FONT_SIZE 32

#define DECI_FONT FONT
#define DECI_FONT_SIZE 20

#define DETAIL_FONT "DejaVuSansMono.ttf"
#define DETAIL_FONT_SIZE 9
#define DETAIL_FONT_SPACE 12