From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Using images in tabs Date: Thu, 19 Sep 2019 15:47:12 +0200 Message-ID: <87k1a4jt3z.fsf@gnus.org> References: <87tv9ir38c.fsf@mail.linkov.net> <83ftl11xdn.fsf@gnu.org> <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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="203904"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Eli Zaretskii , Emacs developers , Yuri Khan To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 19 16:03:51 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 1iAx2E-000qmz-GJ for ged-emacs-devel@m.gmane.org; Thu, 19 Sep 2019 16:03:50 +0200 Original-Received: from localhost ([::1]:44644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAx2C-00059B-H5 for ged-emacs-devel@m.gmane.org; Thu, 19 Sep 2019 10:03:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51947) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAwxJ-0007jo-7x for emacs-devel@gnu.org; Thu, 19 Sep 2019 09:58:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iAwmH-00079Y-0Z for emacs-devel@gnu.org; Thu, 19 Sep 2019 09:47:22 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:51586) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iAwmF-00076Z-Hb; Thu, 19 Sep 2019 09:47:20 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iAwm9-0002ja-AV; Thu, 19 Sep 2019 15:47:15 +0200 In-Reply-To: <871rwd5ouy.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 18 Sep 2019 23:50:29 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.91.231.51 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:240168 Archived-At: 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... > Another problem is that svg background is not transparent - > it takes the background color from the default face. The backgrounds are transparent, but we render it towards some background or other. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no