From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Carlos Pita Newsgroups: gmane.emacs.bugs Subject: bug#37689: Fringe pixmaps, widgets, etc. look ridiculously tiny in hidpi screen Date: Sun, 20 Oct 2019 16:17:56 -0300 Message-ID: References: <83sgo1rpbx.fsf@gnu.org> <831rvksksa.fsf@gnu.org> <87eez7mxoh.fsf@mail.linkov.net> <87zhhvgsgf.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006452ad05955c6d32" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="21821"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Robert Pluim , 37689@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 20 21:19:17 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iMGjU-0005Zx-UW for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Oct 2019 21:19:17 +0200 Original-Received: from localhost ([::1]:44762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMGjT-0004Hy-GB for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Oct 2019 15:19:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46194) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMGjI-0004Ha-Kh for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2019 15:19:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMGjG-00055H-83 for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2019 15:19:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46476) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iMGjF-000558-TN for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2019 15:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iMGjF-0002Zf-OU for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2019 15:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carlos Pita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Oct 2019 19:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37689 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 37689-submit@debbugs.gnu.org id=B37689.15715990969833 (code B ref 37689); Sun, 20 Oct 2019 19:19:01 +0000 Original-Received: (at 37689) by debbugs.gnu.org; 20 Oct 2019 19:18:16 +0000 Original-Received: from localhost ([127.0.0.1]:55297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMGiV-0002YW-KU for submit@debbugs.gnu.org; Sun, 20 Oct 2019 15:18:15 -0400 Original-Received: from mail-yw1-f44.google.com ([209.85.161.44]:44457) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMGiU-0002YJ-6u for 37689@debbugs.gnu.org; Sun, 20 Oct 2019 15:18:14 -0400 Original-Received: by mail-yw1-f44.google.com with SMTP id m13so4117327ywa.11 for <37689@debbugs.gnu.org>; Sun, 20 Oct 2019 12:18:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=noWSpiFlqeIZho2mPHyMn1siolOFnbuHFyD3eLhlgiY=; b=I+NTs2bshvYBWWqHaF8X6Jh8w4qBsxEc5B3nmXifFGT/8P/JB9CMgtY8LWyisZKokW h9L2GzL9ENWje2NcJ7vD2e65LzMV9JRgg23zGQIgUF1CEl1ZdGA2RE/IC00OAauQh6+j LrhTZ1Fs+gX5NaS8yI/H9pqRJaR8xqFdC1aDNTS0dpXPsvYfXmpxzIkCjAJT19S06BrC C+nujKFk4N1p2SeoTRY5Zwh4zQso4pPZyfV6vKPsTRTRRwixfOiz4Vs/GHxrXbT1zIkm YWyeVFzDLlxwqDyaiwvIxplDyhdRLGlDSovRp6V87L6yAEMptEf1ieieKbwyTP7N/FpK RW/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=noWSpiFlqeIZho2mPHyMn1siolOFnbuHFyD3eLhlgiY=; b=DSIn6xi9dsj5G8qD+K7NXBXvX8Th4E22UGOyFLDRIInrtlWxC2XZpV9EIpIkWtjQLb RygqRq2EX9sPzKGwG411rOGLcdNGkrpdJegysbfeUXheILHeBH8GNqEhzaKFx7D2kf5/ Qc1hp5UHg1JRaoHX59aviBoAmemUSBl0Lbe+dCF4ofIs8zwyVueubd1OtfY/GHCyQozE pZmThpXk8ZH13EHe8E622ewTlXLrSmjmmgf2YyfT0P3s7Bzuwu7ZhocE49f4rxJvHs26 Ze8XoPPNeA7UvAg4snGJ59SH23NSlFBwZ8KWbgJVsylnohp1vYgEr049cxS/2MnbZCYr gpZg== X-Gm-Message-State: APjAAAXs8MGgV6aefcCIaM0Dp332kBSuUm/csXgrM/7l+6nQygYKn2BU JndJbjOfZ6fgRKEqXXSkpR3z3FSok3BQ/9UJwxk= X-Google-Smtp-Source: APXvYqxfoMym/2HRrPvxYWzZh93PfCK+1ii7q+FtX3x1SIsEQpOgSZxQzw5oekQQj7qxbcrUKcDKoLBpRfIyuc17j+U= X-Received: by 2002:a81:ab42:: with SMTP id d2mr14012874ywk.64.1571599088372; Sun, 20 Oct 2019 12:18:08 -0700 (PDT) In-Reply-To: <87zhhvgsgf.fsf@mail.linkov.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:169858 Archived-At: --0000000000006452ad05955c6d32 Content-Type: text/plain; charset="UTF-8" > > > Maybe the value of 'fringe-indicator-alist' should be frame-local? > Frames can be moved from one display to another with a different dpi. > >> Funnily enough, the current fringe bitmaps are too big for me, > > > > Too big as in "twice as big as expected" or in "too big for my taste"? > > I use a small 10px font, so the customized bitmaps fit the font size. > Ah ok, great, so that's not a scale factor issue. So maybe fridge bitmap size should depend on the font size, not scale? > 10px fonts are not 10px at other scale factor than 1x. In general you don't have to change the size of your fonts when duplicating your screen resolution, even if your fonts were given in px size, because the toolkit scales them for you under the assumption of some standard ~96dpi base which allows pixels to be treated as something more than a "number of tiny dots, whatever their size is" measure. What can be done is to adjust everything else in emacs to the effective (not nominal) pixel size of the default face (then scale factor would be the effective to nominal pixel size ratio of this font). I believe something like that is done in some places, it's sensible given that emacs is mostly a grid of characters. But anyway this is clearly not the approach taken for the fringe and some parts of emacs have geometry not so tightly coupled to font size, although I would indeed expect high correlation. And some toolkits (for example, gtk) offer a separate scale factor for font size, which is then applied on top of the general scale factor and seen mostly as an accessibility feature. > --0000000000006452ad05955c6d32 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Maybe the value of 'fringe-indicator-alist' should be frame-local?<= br>

F= rames can be moved from one display to another with a different dpi.
<= div dir=3D"auto">

>> Funnily enough, the current fringe bitmaps are too big for me,
>
> Too big as in "twice as big as expected" or in "too big= for my taste"?

I use a small 10px font, so the customized bitmaps fit the font size.


Ah ok, great, so that's not a scale factor issue.=

So maybe fridge bitmap size should depend on the font size, not scale?
<= /blockquote>

10px = fonts are not 10px at other scale factor than 1x. In general you don't = have to change the size of your fonts when duplicating your screen resoluti= on, even if your fonts were given in px size, because the toolkit scales th= em for you under the assumption of some standard ~96dpi base which allows p= ixels to be treated as something more than a "number of tiny dots, wha= tever their size is" measure.

What can be done is to adjust everything else in emacs to the ef= fective (not nominal) pixel size of the default face (then scale factor wou= ld be the effective to nominal pixel size ratio of this font). I believe so= mething like that is done in some places, it's sensible given that emac= s is mostly a grid of characters. But anyway this is clearly not the approa= ch taken for the fringe and some parts of emacs have geometry not so tightl= y coupled to font size, although I would indeed expect high correlation. An= d some toolkits (for example, gtk) offer a separate scale factor for font s= ize, which is then applied on top of the general scale factor and seen most= ly as an accessibility feature.
--0000000000006452ad05955c6d32--