all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pankaj Jangid <pankaj@codeisgreat.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs --with-pgtk and use-package
Date: Thu, 24 Mar 2022 18:42:12 +0530	[thread overview]
Message-ID: <87v8w3wl3n.fsf@codeisgreat.org> (raw)
In-Reply-To: 87cziba6mt.fsf@yahoo.com

Po Lu <luangruo@yahoo.com> writes:

> Scaling with xrandr is very undesirable on a HiDPI monitor, since it
> just upscales the screen contents.  I have no idea why people try it at
> all these days.  Most likely what you actually want is to tell programs
> the DPI of the display, by setting the Xft.dpi X resource.

Actually, I used xrandr to downscale. used Xft.dpi to tell clients to
about the DPIs. Normally it works in multiple of 96. So I specified 192
and then downscaled using xrandr --scale 1.25x1.25. This is to achieve
fractional scaling.

>> I tried to use ‘sway’ (on wayland) and used scaling provided by
>> ‘sway’. All gtk based applications looked good. Emacs was still
>> blurry. So I tried to build ‘--with-pgtk’. Now that scalling is working
>> fine in Emacs as well. But ‘use-package’ has stopped working.
>
> That's a bug.  Please try to determine why it stopped working.
>
Will do.

>> 2. Is there any other solution to scaling problem without using pgtk?
>
> Yes, but it depends on what you did wrong earlier.

When I used ‘sway’, I found it lighter. May be just a feeling of
something new. But I want to give it a try for some time.

Resetting everything else to default settings and just specifying

output DP-2 scale 2

in the ‘sway’ config file. It works fine except that now everything is
too big. Other GTK apps scale well. But Emacs without pgtk is
pixelated. How to achieve smooth rendering of buffers and the menubar
items without building --with-pgtk?





  reply	other threads:[~2022-03-24 13:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-24 11:52 Emacs --with-pgtk and use-package Pankaj Jangid
2022-03-24 12:15 ` Po Lu
2022-03-24 13:12   ` Pankaj Jangid [this message]
2022-03-24 13:32     ` Po Lu
2022-03-24 14:30       ` Pankaj Jangid
2022-03-24 16:19         ` Pankaj Jangid
2022-03-25  0:55           ` Po Lu
2022-03-25  8:52             ` Pankaj Jangid

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v8w3wl3n.fsf@codeisgreat.org \
    --to=pankaj@codeisgreat.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.