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

Pankaj Jangid <pankaj@codeisgreat.org> writes:

> 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.

Ah.  I don't think there's any window system that really gets fractional
scaling right.  AFAIR GNOME Shell is the only Wayland compositor that
even supports fractional scaling at all, but that information could be
several years out of data.

> 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.

That isn't the fractional scale you want, so it explains why everything
is too big.

I don't think there's a way to get fractional scaling working on
GNU/Linux without some blurriness, but your best bet is probably GNOME
on Wayland with a PGTK build.

> But Emacs without pgtk is pixelated.  How to achieve smooth rendering
> of buffers and the menubar items without building --with-pgtk?

That's impossible on Wayland, where a build without PGTK will run inside
Xwayland, which doesn't support scaling at all, so the resulting windows
are upscaled by the Wayland compositor.

Besides, PGTK is not supposed to break use-package at all.

Thanks.



  reply	other threads:[~2022-03-24 13:32 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
2022-03-24 13:32     ` Po Lu [this message]
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=8735j7a32v.fsf@yahoo.com \
    --to=luangruo@yahoo.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=pankaj@codeisgreat.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.