From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.help Subject: Re: Emacs --with-pgtk and use-package Date: Thu, 24 Mar 2022 21:32:24 +0800 Message-ID: <8735j7a32v.fsf@yahoo.com> References: <875yo3y3ch.fsf@codeisgreat.org> <87cziba6mt.fsf@yahoo.com> <87v8w3wl3n.fsf@codeisgreat.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19431"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Pankaj Jangid Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 24 14:33:39 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nXNas-0004rV-Vq for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 24 Mar 2022 14:33:38 +0100 Original-Received: from localhost ([::1]:56718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXNar-00067a-O9 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 24 Mar 2022 09:33:37 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52606) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXNZw-00067C-2W for help-gnu-emacs@gnu.org; Thu, 24 Mar 2022 09:32:40 -0400 Original-Received: from sonic301-31.consmr.mail.ne1.yahoo.com ([66.163.184.200]:45230) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nXNZu-0003Wt-6E for help-gnu-emacs@gnu.org; Thu, 24 Mar 2022 09:32:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1648128756; bh=bz6pwsT7RY34IUWrHvwmL4bF26EQbZ1wYK1RhDVIOUw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=PcBkqPiyPXaP5RM6viRPC4iyC6hf3EohlLIhU4517dHRNGQGr6azb0sLGV3dazAYzay9P49SfnKSCyLQ7Leuxvd9fRBJoirifRjoau3N0gSeCHXI3Vcgy4/6gJE77k61mO3fazu3Yu/N4sz3ZwJnFKy4pOqbA1xyj+VlXdsThDWA8T2PO3r4qyFPpJkEt1SE0Q+4Tk4Z6taeuuqkOc3lpoUGt0iCr/FufxGmu61MvWQUye3QVa3WmvTslFbc2de+Qq3GsLlS8MU5jP6ogTl1VNwLVZ+bKt548QDElwW67bwnpEsKFGcPz/pxNV3hKZDqenyFoHi6DMcu0IKe6lMunQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1648128756; bh=V/xA1f7OW3HqrFN+U8a3oLlVTGBj9fuIb8zsEqWhNUX=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=bdBfSzwCYog87FUMIrP05zeUJEY4M3iG6Bj/OWKhHLw5YBQMEzylzcyb+1FsCs25Xc7XYkw2T8VqCLR4qSMCCZTYvA7i7Ey8SHSfFIpQdQ/03xpRAzYfkTAP7lqiQ/ezP8A2gx+0+f01Zis4avWOaGWy6od68xVEJL0RtSsCYbtEI7J4TGDQv52pTJIZKP+DsRWhIw9dwbQLnPzl38omwctpLOAxJ0i5A0GpyMoGWnq0kYcIQ/7GkQHQHd/tAjom/vfZglaJ6emJH/EWxaYqSIngPLD/gL+6boNs+sr+zSsUKJ9AOt6ElPXSAtgAmXAThF4c3pfuoey5J/WhtNWXmA== X-YMail-OSG: vAr5TuAVM1lqF0udBLbLzdvKXaaS_rvtWds.AY8C.8leBprBITsmBG4ODUge.sg 6iQFIgr7byKM6hRWiUWv_jcJ0Sjd7Ibe8K6hTSk9d3OEzm2nyIPkUKW7gQaoYkFz9ccPg8ystmDq FOp9REU_mxIuJ38HitrPMcnKtrBRxlOMmMM19IrDuJ9PZ5.dOfts9NzHZMYDI19kBr4Qj5abyAE8 1hYylmZ013ZZOsYac31eX2pL_3NjUBQ9CgBPE_lXL6cf4VmGbVNKF5mBl.4haY.t0XH949WwmsU2 k6I2bRv16TvWIPNhGEDG_akPt3GnJYDDKlwpReywvhCG5hw0uoask02yQHOd2v1VlRGkx3anz1By BQEEi51_6QjSAouM9MvnDVCxs2e8sXACVgGX21ku6X12I8jzSkNaVT6fEh6VW92_G27s1_WwyylJ SBVjbA1T8c7OaApWSEAG4ybh51QwqNTVdXVdykdhm35H8jWSkTOQmqvu36Q.Si8K8L0s6ejC37nV zwsuDhX8uTqKshxoCyUnsWfibPhfoFvFE9U1Y1iLaxLIoM90v12qriDpjTgx2qHZHzl2QetqcyTj Uda_MK7ESIb_SrRvFfvP5joAGYhl2Wm5NJfFg_uiCorhBoAfGLIwjgsDAS5kNzEdBcHhrlYrPPoL PzodS2eEmdcyoSh9gPBlpioIkfkDlZ5DRqRlkSRP3q1Ul4Xs4HozuQ2dOC9ldSjAUDGxpFRhw99i AJma3Xx_qTL_9nanUU98lfC4GOcXR9PaivZyin565zxFRMie5jADRW4X7lLCORDXi0Jw6wJwX5vJ dohgwe_4FehMovvmBwXWsHFAdlVMAe_ch8h7K870XC X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Thu, 24 Mar 2022 13:32:36 +0000 Original-Received: by kubenode510.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID a07dc84db41122a9956f9ef8c3db5ec5; Thu, 24 Mar 2022 13:32:29 +0000 (UTC) In-Reply-To: <87v8w3wl3n.fsf@codeisgreat.org> (Pankaj Jangid's message of "Thu, 24 Mar 2022 18:42:12 +0530") X-Mailer: WebService/1.1.19987 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.200; envelope-from=luangruo@yahoo.com; helo=sonic301-31.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:136739 Archived-At: Pankaj Jangid 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 =E2=80=98sway=E2=80=99 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.