Re: [Fresco-devel] Getting the basics straight, was: Text styles/cloning graphics

Tobias Hunger <[email protected]>
Newsgroups gmane.comp.video.fresco.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 04 October 2002 19:41, Stefan Seefeld wrote:
> Tobias Hunger wrote:
> > I further assumed this graphic is caching the situation of the TextBuffer
> > in the scenegraph (using boxes, glue, glyphs, etc.) to avoid the overhead
> > of redoing the linebreaking and layout on each rendering pass.
>
> what has 'the situation of the TextBuffer' to do with linebreaking and
> layout ?

s/situation/contents/ Sorry, bad english.

> > That overhead is
> > the reason why TeX runs non-interactive and why most graphical TeX
> > editors use some way more simple algorithmns then TeX itself.
> >
> > Can we all agree on these two basic assumptions?
>
> no.

I was afraid of that;-)

> I'm all for good and fine-tuned caching where appropriate, but the
> correctness of the server's behavior mustn't depend on it. Read: caching
> is an implementation detail.

Agreed.
/me wonders where that 'no' came from if we are agreeing;-)

> > PS: What I tried to describe with the trees in my original mail was this
> > 'cached' form.

> aaaaah. But then we are not talking about graphics any more. The caching
> composite object (a paragraph, say) knows a good deal more about the
> objects it caches, and thus all the other questions you raised such as
> whether or not to add 'clone' methods doesn't target the 'Graphic'
> interface but something else.

OK, so we do agree about there should be some form of caching? That's where I 
started from too: I fealt it is natural to use Graphics to cache the actual 
layout: Describing basic elements, their size and position is what they were 
designed for. Do we still agree?

If we do want to use Graphics for that caching we will need to arrange them in 
a way that reflects the linebreaking, the styling of the glyphs, etc. To do 
that we will need to find a way to apply decorators across linebreaks, which 
results in the need to duplicate decorators: A clone() method. Agreeing?

Such a method might proof to be useful in other contexts too.*Still* agreeing? 
No? Thought so, anything else would be more then strange, we *never* agree on 
more then one thing at a time;-)

I wish we could get together around a table and discuss this in person. It 
took less then 5 min to get to this point with Mourad when he was here!

- -- 
Gruss,
Tobias

- ------------------------------------------------------------
Tobias Hunger           The box said: 'Windows 95 or better'
[email protected]                      So I installed Linux.
- ------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE9nd3Dv0FZW3NyoqURAhUtAJ98q20y4G6xGAsP8QlX18KwYzmAyACfcRHT
Wu/94QY+om+fMRZQfXKE/rs=
=guJ3
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.