all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: Accessing rendered image data
Date: Thu, 30 Jun 2016 12:11:53 -0400	[thread overview]
Message-ID: <87d1mylkqe.fsf@lifelogs.com> (raw)
In-Reply-To: m360sqznxs.fsf@gnus.org

On Thu, 30 Jun 2016 17:38:55 +0200 Lars Magne Ingebrigtsen <larsi@gnus.org> wrote: 

LMI> Ted Zlatanov <tzz@lifelogs.com> writes:
>> On Tue, 28 Jun 2016 20:29:58 +0200 Lars Magne Ingebrigtsen
>> <larsi@gnus.org> wrote:
>> 
LMI> I wanted to figure out how much space text rendered in an SVG
LMI> takes.
>> 
>> SVG is supposed to take care of layout and sizes, isn't it? It has all
>> that scaling and positioning in the spec... so maybe you can just use
>> the SVG facilities?

LMI> I need to do the line folding, I think?

Try tspan or the other magic like "dominant-baseline":

http://tutorials.jenkov.com/svg/tspan-element.html

https://stackoverflow.com/questions/4991171/auto-line-wrapping-in-svg-text

Multi-line text seems to be the hard part. Sorry, this may be a huge
pain after all.

Ted




  reply	other threads:[~2016-06-30 16:11 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-28 13:52 Accessing rendered image data Lars Magne Ingebrigtsen
2016-06-28 15:37 ` Lars Magne Ingebrigtsen
2016-06-28 16:36   ` Eli Zaretskii
2016-06-28 16:46     ` Lars Magne Ingebrigtsen
2016-06-28 17:23   ` Eli Zaretskii
2016-06-28 17:37     ` Lars Magne Ingebrigtsen
2016-06-28 18:10       ` Eli Zaretskii
2016-06-28 18:15         ` Lars Magne Ingebrigtsen
2016-06-28 18:21           ` Eli Zaretskii
2016-06-28 18:29             ` Lars Magne Ingebrigtsen
2016-06-28 18:48               ` Eli Zaretskii
2016-06-28 18:58                 ` Lars Magne Ingebrigtsen
2016-06-28 19:06                   ` Lars Magne Ingebrigtsen
2016-06-28 19:38                     ` Lars Magne Ingebrigtsen
2016-06-28 20:17                       ` Lars Magne Ingebrigtsen
2016-06-28 20:26                         ` Robert Weiner
2016-06-30 15:08                       ` Eli Zaretskii
2016-06-30 15:12               ` Ted Zlatanov
2016-06-30 15:38                 ` Lars Magne Ingebrigtsen
2016-06-30 16:11                   ` Ted Zlatanov [this message]
2016-06-28 18:35             ` Lars Magne Ingebrigtsen
2016-06-28 18:51               ` Eli Zaretskii
2016-06-28 16:25 ` Eli Zaretskii
2016-06-28 16:30   ` Lars Magne Ingebrigtsen
2016-06-28 17:03     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d1mylkqe.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.