slock icon indicating copy to clipboard operation
slock copied to clipboard

How to change font size?

Open faizan-20 opened this issue 2 years ago • 3 comments

/* text size (must be a valid size) */ static const char * text_size = "fixed";

changing text_size variable results in core dump even though it compiles easily.

Also give support for changing the font

faizan-20 avatar Aug 24 '22 10:08 faizan-20

How do you fix it ? Could anyone give a solution?

applejwjcat avatar Aug 26 '22 14:08 applejwjcat

add this line to your config.h file

static const char *text_size =
    "-Sony-Fixed-Medium-R-Normal--24-170-100-100-C-120-ISO8859-1";

applejwjcat avatar Sep 03 '22 07:09 applejwjcat

But first you should install the larger xorg-font via 'https://www.reddit.com/r/suckless/comments/rm5827/slock_f_doesnt_show_12x24_font/'.

applejwjcat avatar Sep 03 '22 07:09 applejwjcat