You are not logged in.

#1 2021-02-18 22:43:24

dani877
Member
Registered: 2021-02-18
Posts: 5

Big letter spacing in dwm [SOLVED]

I've just begin using dwm and the space between the lettes is painfully big so it looks ugly. I'm wondering how to fix that.

H6OBUag
image: https://imgur.com/a/H6OBUag

My conf.h file looks like this (not the whole file):

1 /* See LICENSE file for copyright and license details. */
  2
  3 /* appearance */
  4 static const unsigned int borderpx  = 2;        /* border pixel of windows */
  5 static const unsigned int snap      = 32;       /* snap pixel */
  6 static const int showbar            = 3;        /* 0 means no bar */
  7 static const int topbar             = 1;        /* 0 means bottom bar */
  8 static const char *fonts[]          = { "fixed:size=11" }; // monospace by default
  9 static const char dmenufont[]       = "fixed:size=11";
 10 // background-color
 11 static const char col_gray1[]       = "#363131";
 12 // inactive window border-color
 13 static const char col_gray2[]       = "#444444";
 14 // font color
 15 static const char col_gray3[]       = "#ffffff";
 16 static const char col_gray4[]       = "#eeeeee";
 17 static const char col_cyan[]        = "#005577";
 18 static const char *colors[][3]      = {
 19         /*               fg         bg         border   */
 20         [SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
 21         [SchemeSel]  = { col_gray4, col_cyan,  col_cyan  },
 22 };
 23
 24 /* tagging */
 25 static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
 26
 27 static const Rule rules[] = {
 28         /* xprop(1):
 29          *      WM_CLASS(STRING) = instance, class
 30          *      WM_NAME(STRING) = title
 31          */
 32         /* class      instance    title       tags mask     isfloating   monitor */
 33         { "Gimp",     NULL,       NULL,       0,            1,           -1 },
 34         { "Firefox",  NULL,       NULL,       1 << 8,       0,           -1 },
 35 };
 36
 37 /* layout(s) */
 38 static const float mfact     = 0.55; /* factor of master area size [0.05..0.95] */
 39 static const int nmaster     = 1;    /* number of clients in master area */
 40 static const int resizehints = 1;    /* 1 means respect size hints in tiled resizals */
 41
 42 static const Layout layouts[] = {
 43         /* symbol     arrange function */
 44         { "[]=",      tile },    /* first entry is default */
 45         { "><>",      NULL },    /* no layout function means floating behavior */
 46         { "[M]",      monocle },
 47 };

Last edited by dani877 (2021-02-20 00:43:52)

Offline

#2 2021-02-19 07:28:57

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,584

Re: Big letter spacing in dwm [SOLVED]

Check

fc-match fixed

then use "monospace:size=11"

Offline

#3 2021-02-19 12:02:24

dani877
Member
Registered: 2021-02-18
Posts: 5

Re: Big letter spacing in dwm [SOLVED]

For "fc-match fixed" I get

 Inconsolata-Regular.ttf: "Inconsolata" "Regular" 

In the config.h file the default font was the monospace. I set it back but nothing has happened.

Offline

#4 2021-02-19 12:56:00

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,584

Re: Big letter spacing in dwm [SOLVED]

It actually even looks like inconsolata, but behaves like a variable width font.
Can you try DejaVu Mono?
Also, just a hunch:

localectl
locale
locale -a

Offline

#5 2021-02-19 18:33:18

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 291

Re: Big letter spacing in dwm [SOLVED]

Have you patched dwm? If so, try the vanilla version and see if you can reproduce the effect.

Offline

#6 2021-02-19 22:56:34

dani877
Member
Registered: 2021-02-18
Posts: 5

Re: Big letter spacing in dwm [SOLVED]

Changing the font didn't fix it.

No, I didn't patch it or anything it looked like that from the beginning, even when I installed dwm on a virtual machine (if it can be in connection with the problem).

Offline

#7 2021-02-20 00:43:40

dani877
Member
Registered: 2021-02-18
Posts: 5

Re: Big letter spacing in dwm [SOLVED]

I think I solved it. It's not too fancy, but the letters are in a normal distance from eacother.

Here's what I did: In the config.h file

static const char *fonts[]          = { "c-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1:size=11" };
static const char dmenufont[]       = "c-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1:size=11";

Offline

#8 2021-02-20 07:17:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,584

Re: Big letter spacing in dwm [SOLVED]

seth wrote:

Also, just a hunch:

localectl
locale
locale -a

Offline

Board footer

Powered by FluxBB