From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: SVG hack for display engine Date: Mon, 22 Nov 2021 10:59:39 +0000 Message-ID: References: <83mtm2zyf6.fsf@gnu.org> <83pmqxyj3j.fsf@gnu.org> <83czmxyaio.fsf@gnu.org> <837dd5y0qg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35495"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Alexander Adolf , Emacs Devel To: Anand Tamariya Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 22 12:14:30 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 1mp7HJ-00091C-LL for ged-emacs-devel@m.gmane-mx.org; Mon, 22 Nov 2021 12:14:30 +0100 Original-Received: from localhost ([::1]:33020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mp7HI-0007TX-KF for ged-emacs-devel@m.gmane-mx.org; Mon, 22 Nov 2021 06:14:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mp73A-0004Nt-A4 for emacs-devel@gnu.org; Mon, 22 Nov 2021 05:59:52 -0500 Original-Received: from [2a01:4f8:fff0:65::8:228] (port=54623 helo=outbound.soverin.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mp737-00016o-OB; Mon, 22 Nov 2021 05:59:51 -0500 Original-Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 5245F97; Mon, 22 Nov 2021 10:59:43 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1637578781; bh=N+ze7rtM5r8qta2pyvB/xwj+LncsyoL422W0jTnO4No=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gAwv464Z9abG5nzx+rIobLPx55yhVbRbrVT+JRJqehHFK4FrEgn9Sm6CnbuHRx8R6 o24hstdf8wORDlwusFwVOSz3+NOXZJ+OYaWQ+ppufFOdHPE9wcc9h6o8EMN8p3lMre Nob4G1aCX3jfNDLI7MBI7Asf0DVnYcTmnVTgj41MZKq9pad4NJJhGZSsk9DdUIqx9W /sWDe8jcNMlEQwJ3RXzpnaRY1OTLJBiUqmOFAzyRcZa2Qu/eWMB4eGleJiSJ4pVxQK yXs4FSzAa27t3l4arvKjcluifmbclwfLhwGX0nMs+ssOjmrC535nlXCjB/Hy8XOCf7 in9cOd5UkO1Ag== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.95-RC2) (envelope-from ) id 1mp72x-000TVN-MX; Mon, 22 Nov 2021 10:59:39 +0000 Mail-Followup-To: Alan Third , Anand Tamariya , Eli Zaretskii , Alexander Adolf , Emacs Devel Content-Disposition: inline In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:4f8:fff0:65::8:228 (failed) Received-SPF: pass client-ip=2a01:4f8:fff0:65::8:228; envelope-from=alan@idiocy.org; helo=outbound.soverin.net X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RDNS_NONE=0.793, SPF_HELO_PASS=-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.29 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:279909 Archived-At: On Mon, Nov 22, 2021 at 08:18:31AM +0530, Anand Tamariya wrote: > > > > I'm curious. I can't see any functionality in librsvg for loading an > > SVG DOM directly without doing a round-trip into a string. Am I > > missing something? > > > Good point. I hope the following will perform better. > > RsvgHandle * rsvg_handle_new_from_stream_sync (*GInputStream *input_stream*, *GFile *base_file*, *RsvgHandleFlags flags*, > *GCancellable *cancellable*, *GError > **error*); AFAICT that still reads in text, just in the form of a "stream". -- Alan Third