From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Using images in tabs Date: Fri, 20 Sep 2019 19:44:36 +0100 Message-ID: <20190920184436.GB20949@breton.holly.idiocy.org> References: <87impxnqjm.fsf_-_@mail.linkov.net> <837e6c1zr2.fsf@gnu.org> <87o8zle0rn.fsf@mail.linkov.net> <87k1a8yngo.fsf@mail.linkov.net> <87v9tsos4k.fsf@gnus.org> <877e66oeo6.fsf@mail.linkov.net> <87h859lny8.fsf@gnus.org> <871rwd5ouy.fsf@mail.linkov.net> <87k1a4jt3z.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="149362"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.12.0 (2019-05-25) Cc: Eli Zaretskii , Emacs developers , Yuri Khan , Juri Linkov To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 20 20:44:53 2019 Return-path: Envelope-to: ged-emacs-devel@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 1iBNtk-000ciD-5d for ged-emacs-devel@m.gmane.org; Fri, 20 Sep 2019 20:44:52 +0200 Original-Received: from localhost ([::1]:34638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBNti-0005Ib-Ge for ged-emacs-devel@m.gmane.org; Fri, 20 Sep 2019 14:44:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52926) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBNtc-0005Gp-1S for emacs-devel@gnu.org; Fri, 20 Sep 2019 14:44:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iBNtb-0001kV-0k for emacs-devel@gnu.org; Fri, 20 Sep 2019 14:44:43 -0400 Original-Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:36957) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iBNtZ-0001jd-Af; Fri, 20 Sep 2019 14:44:41 -0400 Original-Received: by mail-wr1-x429.google.com with SMTP id i1so7797361wro.4; Fri, 20 Sep 2019 11:44:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=fgUGIcSOzcK7Jm657P8gARybFfKFAoqIDdVhzNN6FZ4=; b=lM4KvKFgi5rOTYXcn3ezrlmp45s3pqWvov2/1Wgq8z/w+M8LOU0QDxKlIlqj/xvlgr Ylp7JsbRivAEpn8lwYgMW6vhyRuXoqwhsMaMf8AetT4HEzAWJAwrJz6FfDmufQ+gxPtJ h+x1JyAmn6IaBdIunD1fJs6QZuugrZgyh0OlMpgIbTfGDD9l2CUSP4PBWn9k7O0/CTbf Fv6A4Kp4xg4hXzLVxKEV9G0+I087NvKC3ipQNcz8FgSZhT/CWqyf05hIedAB6FVzEC44 vQN2oknD1NUvSuCqlLth9lNiFpcjRDK6yMSmBnv32cdNL2zNTy+sAXlHmChrC6AryexU fboQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=fgUGIcSOzcK7Jm657P8gARybFfKFAoqIDdVhzNN6FZ4=; b=SjS48Hq8BOlVm/wBGG3AnHpf6FhzYAPVqbrufkn+7ezAscJUOXzJRdbzNmhlr67a5Q 56FA/7MAZh3B+T7IzC0LIOIjaZwKOfoDqEnS+WFdo2hGcO1Xbkc0fbOddfGPG9Wb6SWM 2TstafRIO0vwLZP7IqAL8D8lWLBSbwS9qqtB2w7sUd4gpzQ1R/wW8Tc5K7ptE1kWkBmi 2aqAqrhP6LvVNOH4GB1a2HfFFPvuTxgapeLw1j53uJwvQOrAP0qQbB778tROM8ot5Mun KbJPv4bhDXKoj9oc2pXUeX6DCvyWjTKqaIo459kawYCtCO661pmgbIi/oOC/nmoOKheN iNKA== X-Gm-Message-State: APjAAAXBJ8uTZpM3FiaZs6QJKak9oyIinHhvmkEIvNk78Sv2hmD/QJCv 7UMSZU41LzhS++jO252VwcU= X-Google-Smtp-Source: APXvYqwjNhFcjmfjRPcMu4wJ8uQ1Gn66Y71nl4StSMTENE+KAA8op8V1ZZFCnsb9YgLB4qMdYQPdEw== X-Received: by 2002:adf:ce91:: with SMTP id r17mr13358150wrn.97.1569005079609; Fri, 20 Sep 2019 11:44:39 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-0072-07ec-8b54-d28f.holly.idiocy.org. [2001:8b0:3f8:8129:72:7ec:8b54:d28f]) by smtp.gmail.com with ESMTPSA id 207sm4651742wme.17.2019.09.20.11.44.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Sep 2019 11:44:38 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87k1a4jt3z.fsf@gnus.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::429 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:240204 Archived-At: On Thu, Sep 19, 2019 at 03:47:12PM +0200, Lars Ingebrigtsen wrote: > Juri Linkov writes: > > > Meanwhile I tried to scale svg, and the result is not great. > > Scaling up makes the image blurred, and scaling down makes the > > image smeared. > > Emacs calls the svg library which generates a bunch of pixels that we > then tell X (or whatever) to scale. This is always going to be blurry. > > Instead if you want to scale svg properly, you have to give a :scaling > of 1 (and not :max-width etc) and then somehow instruct the svg library > to render it at whatever size you want to. Perhaps altering the XML is > the easiest... Librsvg appears to be designed to use Cairo to do any resizing for it. IIRC librsvg does provide a way to change the DPI, but it’s deprecated. I’m curious if it would be possible to use Cairo in a toolkit independent way to resize and render SVG files. The alternative, I suppose, would be to find a different SVG library. -- Alan Third