Skip to content

Hardcoded default font is outdated and creates logspam #382

@mbenkmann

Description

@mbenkmann

Every time I start notion I get the log message

2025-07-31 12:18:18 INFO /notion/../fontset.c:121: de_create_font_in_current_locale: Found a font with 12 missing charsets for -*-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*

This is because de/init.c:de_init() creates a fallback style with a non-configurable fontname obtained from de/font.c:de_default_fontname() which hardcodes the above helvetica font.

Obviously legacy X11 fonts like helvetica are hopelessly outdated and can't be expected to support all charsets.

I'd like to get rid of this annoying message. I see several options:

  1. Change the loglevel of the message to DEBUG. I don't think it has a value for ordinary users, especially since they can't change the font in question and will only be sent on a wild goose chase in their style for where they forgot to specify a proper font
  2. add an #ifdef HAVE_X11_XFT block to de/font.c:de_default_fontname() with the default "xft:sans-serif:size=12", so that systems with XFT use a more sensible default.
  3. make the default font user-configurable in some manner

I'll implement this and submit a PR if you tell me which option you prefer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions