emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] src/pgtkterm.c: Honor system DPI settings


From: Jindřich Makovička
Subject: [PATCH] src/pgtkterm.c: Honor system DPI settings
Date: Sat, 29 May 2021 10:32:10 +0200

Hi,

unlike most of other GTK3 applications, including the current X11
Emacs, PGTK build of Emacs seems to ignore the system DPI settings,
always forcing the DPI of 96. This makes the fonts much smaller, which
is especially annoying in the GTK menus - other fonts can be configured
in the Faces customization.

I tried to change Emacs to retrieve the display resolution instead of
enforcing 96 DPI, as in the attached patch, and it seems to work on my
display with system DPI set to 130 - the menu font size returns to
normal, and font scaling is consistent with regular X11 Emacs with the
same configuration. I also tried the Broadway display with this patch,
and Emacs has the same font scaling as other GTK3 apps, which is what
one would expect.

Could the attached patch be included in the PGTK branch, or is there
some fundamental reason PGTK Emacs uses its own DPI settings?

Regards,
-- 
Jindrich Makovicka

Attachment: 0001-src-pgtkterm.c-Honor-system-DPI-settings.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]