Re: [dev] [Bug?] Incorrect font render size, dwm/ dmenu
Well this is weird, they are rendered at correct sizes now. I could swear i saw them being rendered bigger than the specified size. Perhaps i confused something.
Anyways, testing now i find them being rendered correctly. I'll be on lookout in case i come across the issue again. I had a screenshot which showed the relevant dwm/ dmenu config.h files and the mismatched rendering... which i sadly deleted before testing. But just for the record, these were the sizes that i had used:
// dwm
static const char *fonts[] = { "monospace:size=10.5" };
static const char dmenufont[] = "monospace:size=10.5";
// st
static char *font = "monospace:size=10.5";
If i was not confused/ mistaken then it's likely to be a bug in the relevant font libraries that the tools use. Of course other setup specific/ related factors could also be responsible.
Nov 26, 2025, 18:39 by admin_AT_ovah.dev:
> On 26/11/25 at 12:48pm, zuix wrote:
>
>> Both `dwm` and `dmenu` render font(s) at incorrect sizes. I've not modified anything related to fonts on my system (no fontconfig edits related to font size). I'm using >96 Xft.dpi in Xresources. The font(s) appear bigger than the specified 10.5pt size (compared with font rendering on `st`, which renders correctly, at the same size).
>>
>
> Hi friend,
>
> Both dwm and dmenu render fonts at the correct size for me using various
> methods to set the font size. If you could share how you are setting
> font size I may be able to help you get the sizing correct. The
> standards that usually work for me are as follows: setting font face
> with predefined size ("Terminus:size=12") or I'm not actually sure what
> this method is called but it also works for me
> ("-*-terminus-medium-r-*-*-12-*-*-*-*-*-*-*") and inside of config file
> that would be setting *fonts[] or dmenufonts[]. I hope this helps and if
> you still need extra help I could try testing the specific size and font
> face you are using.
>
> Best,
> ovah
>
Received on Thu Nov 27 2025 - 14:27:35 CET
This archive was generated by hypermail 2.3.0
: Thu Nov 27 2025 - 14:36:08 CET