From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: "Fix" sag scaling for hidpi Date: Sun, 14 Feb 2021 02:02:52 +0200 Message-ID: <31b44f0b-c8a4-284e-835e-89c84e8407d4@yandex.ru> References: <9C04F72C-1BB6-4308-AD8E-4A2B471CAC4E@gmail.com> <871rdkte4f.fsf@gnus.org> <87h7mgqj60.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27554"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 To: Alan Third , Lars Ingebrigtsen , Yuan Fu , Robert Pluim , Eli Zaretskii , monnier@iro.umontreal.ca, emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Feb 14 01:03:50 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lB4tC-00074D-9d for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Feb 2021 01:03:50 +0100 Original-Received: from localhost ([::1]:51856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lB4tB-0001Zj-9J for ged-emacs-devel@m.gmane-mx.org; Sat, 13 Feb 2021 19:03:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lB4sO-00019C-It for emacs-devel@gnu.org; Sat, 13 Feb 2021 19:03:00 -0500 Original-Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:36081) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lB4sL-0006It-MN; Sat, 13 Feb 2021 19:03:00 -0500 Original-Received: by mail-wm1-x32a.google.com with SMTP id i9so4038380wmq.1; Sat, 13 Feb 2021 16:02:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=QFnPaFsfTyk5wHpw4avOI23cVNzevj2lXm8IS4Znz8o=; b=aMn2K/+P/JIQ+yuLDNHEGTEuppd2clZi3vpIf4eMb6PVBVwJBeJALc+CrTFUgTTocj l8DlA95KNSnUeT+PuYrXZRqDz6/jTk+oRrFiOfq+JQ8hNyju9dIEjajh4aBnVdGVYE9h Q00DnvlU+ocab2+9FIyH4r8tjTiBXG3I1mAj+Nzh0zBArwDEORwjg2+QUY2SJ5EuAqLn IE3ESasmtoURyYVdas6KNK/83cvtj0AygKYnSr2qjkRpTjEEa8eIFxnlk4ykVcO+b0EX ks+qNrDoU+wXSMRZLurVlf31RLKh2GpFahvgemP1n8Ie8LORDXFHyEr1pDvQ7+v5c170 1llw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=QFnPaFsfTyk5wHpw4avOI23cVNzevj2lXm8IS4Znz8o=; b=jfoyb7bfdyXf8yEtZISHx0D5laR9eJqtkcQKO4ggRDAWJGjLRA7zAJ4vNp+LXnprag ng0asGmX8jUUR4x4pjvR0RWkAQzQMqnrMSVPbnELTQNyyPBJUgyxx8e/wz5R4ATGd1U5 9NxUKUCIL+4dlxBwhQMOSItxYIjR7FqFpfWnIQsnxypq7rc8eTEJ4NhOJnn3Lotj0mor qwblpVUJ6PBvEyBz69fDHmLr4XUeHwIaLcgQ8c0dTqpb4Fx2dNBH26nDsbiN2bOjFFq4 0Eq85S+61cSmyCUOsYeKSA/WF/XhndvPXskfLouXWafrBF+/yuQC2gWXz3BnBWjw0WYG hkpA== X-Gm-Message-State: AOAM530OCTNfVsAkhx6IBkTxHC86YGX8YbO34E/a27Co009CGDOgGYBo 3EGO69iiDb8vlhaqX+2dabS0Dj954vM= X-Google-Smtp-Source: ABdhPJzor4T3FoF46SO99ogM2A4pNs1JD/MVOL50XQyofnzWOicv5z4mb03UHW78sbh3yw2FWXyvPg== X-Received: by 2002:a05:600c:4788:: with SMTP id k8mr8168194wmo.138.1613260974911; Sat, 13 Feb 2021 16:02:54 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id l1sm16544575wmq.17.2021.02.13.16.02.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 13 Feb 2021 16:02:54 -0800 (PST) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=raaahh@gmail.com; helo=mail-wm1-x32a.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:264674 Archived-At: On 14.02.2021 01:14, Alan Third wrote: > On Sun, Feb 14, 2021 at 12:50:26AM +0200, Dmitry Gutov wrote: >> I noticed the pgtk and the GTK3 builds render them in different size at 2x >> scaling. Basically, pgtk scales (and renders them kind of fuzzily) and GTK3 >> does not. I wonder if their rendering could be standardized as well, and >> whether the same approach could be used to avoid fuzziness. > > Really I think we should be providing hi-res, or vector, versions of > the fringe bitmaps for hi-dpi screens. > > I'm not sure if we can just swap in SVG files for the fringe bitmaps > on systems that support them... Fringe bitmaps are special in some > way. But couldn't we use a non-fuzzy algorithm to scale them, at least as a fallback? If the bitmap is all 1s an 0s, scaling by 2x could just double the lattice instead of doing the linear scaling. Or there might be other scaling algorithms as well, if people feel that that approach ends up looking too "blocky". There are an infinite number of possible scaling factors, so providing a high-res version for all of them is probably out, but some vector format sounds like an interesting possibility. As long as it's feasible to generate programmatically, because that's what I'm doing with a bunch of fringe bitmaps in a certain popular minor mode.