From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.bugs Subject: bug#40845: SVG rendering issues Date: Sat, 25 Apr 2020 15:48:39 +0000 Message-ID: References: <72ebf5eb-6b00-ebb4-dab3-a047e35ae1ae@gmail.com> <83o8rf7fc0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="95863"; mail-complaints-to="usenet@ciao.gmane.io" Cc: cpitclaudel@gmail.com, 40845@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 25 17:50:15 2020 Return-path: Envelope-to: geb-bug-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 1jSN4H-000OnX-AP for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Apr 2020 17:50:13 +0200 Original-Received: from localhost ([::1]:39552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSN4F-0004nY-Vm for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Apr 2020 11:50:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53856) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSN47-0004kW-7V for bug-gnu-emacs@gnu.org; Sat, 25 Apr 2020 11:50:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSN46-0003W3-R5 for bug-gnu-emacs@gnu.org; Sat, 25 Apr 2020 11:50:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48690) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jSN46-0003Vh-Es for bug-gnu-emacs@gnu.org; Sat, 25 Apr 2020 11:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jSN46-00062v-DJ for bug-gnu-emacs@gnu.org; Sat, 25 Apr 2020 11:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Apr 2020 15:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40845 X-GNU-PR-Package: emacs Original-Received: via spool by 40845-submit@debbugs.gnu.org id=B40845.158782976323190 (code B ref 40845); Sat, 25 Apr 2020 15:50:02 +0000 Original-Received: (at 40845) by debbugs.gnu.org; 25 Apr 2020 15:49:23 +0000 Original-Received: from localhost ([127.0.0.1]:60236 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSN3T-00061y-3I for submit@debbugs.gnu.org; Sat, 25 Apr 2020 11:49:23 -0400 Original-Received: from mail-ot1-f45.google.com ([209.85.210.45]:46901) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSN3R-00061k-9L for 40845@debbugs.gnu.org; Sat, 25 Apr 2020 11:49:21 -0400 Original-Received: by mail-ot1-f45.google.com with SMTP id z25so18030529otq.13 for <40845@debbugs.gnu.org>; Sat, 25 Apr 2020 08:49:21 -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=bJvd/DkTWCwUK5NopjZvvwUQIFLW88xKvSXqdp15f5U=; b=b5Lqzi7E9PIrO0mhvntGO7UuNg3T0DzPlUrer6au9yek+2rHz8SfFhyGpxRNi2gTl4 XdzqHci+8N4WK+lLfw/vy02Nnf8DvJY47mUiQ82BluaH7VYxEJkFccq/Tto1kIu1+PKq nBVNQ3prL2zNj+fQsEEmgGTtm68MOJUgGJltGiLa8i3OH7G+BXB5J7srevx0JQFAE/4C AodJS7LKz6+owtwKOZDCsXQxDKPwqZ5eLYx/15G9kj9hlSr56+IC/A4KzjEgf+6GyZkz 9c5nQ1O/639/GLFcS+LgBU5VaxpjBR/+v/rd3/UYGUnUGXO9tczFnUxm9qYlrSMP44B+ DW9w== 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=bJvd/DkTWCwUK5NopjZvvwUQIFLW88xKvSXqdp15f5U=; b=uPNL4ZWPkVyrXBP2vGUnxuAt65MvrFt16O0TgYHUK7WxqSMCJyKkHO8vH4XsoIEIb9 8fgmbhHnugGVA2hcN1MJS6vo76B9riDBtc/NQlW6Qx81KZitgSkVqKRTViWXCxL5VIsV jFXjSb25QHwnTeFBUER8ABxS9KemJYIJ6wAjwqSDCT8GVzYXduAR70SOnxot9ZAoXfwM icfbNYcF6QYNBGgOGeDum7txCPdiIs8ub3bGh7i4AO1oeouPMENG/pE6TF/9/jQkVSmW NoJvamv6ykEK85glPmiIfCNJ8Aj6LcUEuPjdpsg/P3CN9cz+beymW/LurmvO7kfm2nZC pScA== X-Gm-Message-State: AGi0PubU6WIej9wzh96DTjsfmxEyjyRmEpDI4HG7nh0nFd5dTPrGa2pJ 3W9kCHTYNJbJboLkrnxPdcAihwHtei2cL/tw8z4= X-Google-Smtp-Source: APiQypLyccv3wg/+RiHzGXD43Ni9hWkAhAmhrSXyhj6WCj+oRSScM0UDaCtBV0aYPTgh21jRBYwWXCVAd986RHHjERs= X-Received: by 2002:a9d:5a04:: with SMTP id v4mr12845188oth.292.1587829755672; Sat, 25 Apr 2020 08:49:15 -0700 (PDT) In-Reply-To: <83o8rf7fc0.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:179011 Archived-At: On Sat, Apr 25, 2020 at 3:30 PM Eli Zaretskii wrote: > > I've played around a while ago in an attempt to fix these issues, and > > be able to define "character-like" SVG glyphs. My approach was to add > > a display spec of the form (gen FN), which calls FN with the current > > face parameters as arguments whenever redisplaying the spec, then uses > > the return value (an image spec) as the actual spec to be displayed. > > I don't think I understand why we need to call a function for this. > This is about displaying an image with a specific background color, > isn't it? Even if the problem were just the choice of background color, that would require significant and non-trivial changes for some cases: for example, an emoji might have to choose foreground colors that provide sufficient contrast to the background color, and antialiasing and sub-pixel rendering would also need to be taken into account. But, at least for me, it's not: I want to be able to define something that behaves like a character, including displaying differently in different frames and depending on different face parameters such as weight, slant, and RTL-ness. I don't really see a way of doing that satisfactorily without invoking user code outside of the display engine/image backend code.