emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing rendered image data


From: Ted Zlatanov
Subject: Re: Accessing rendered image data
Date: Thu, 30 Jun 2016 12:11:53 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

On Thu, 30 Jun 2016 17:38:55 +0200 Lars Magne Ingebrigtsen <address@hidden> 
wrote: 

LMI> Ted Zlatanov <address@hidden> writes:
>> On Tue, 28 Jun 2016 20:29:58 +0200 Lars Magne Ingebrigtsen
>> <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]