On Wed, 2005-11-09 at 14:17 +0100, Jean-Marc Lasgouttes wrote:
> >>>>> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes:
> 
> Martin> So then the original patch should go in, with break added? How
> Martin> expensive is this with big documents? It scales linearly.
> 
> The good thing is that we have really reduce the number of times
> getFont gets called. Nevertheless, the maybe quadratic in some cases,
> since getFont is called at least once per paragraph.
> 
> The right solution would be to pass a DocIterator or a pit/pos pair to
> getFont, but this is probably a lot of work.

Yes, I came to that conclusion too.

BTW I looked at both text2.C and paragraph.C, and remained wondering.

Asger's explanation
 
// Gets the fully instantiated font at a given position in a paragraph
// Basically the same routine as Paragraph::getFont() in paragraph.C.
// The difference is that this one is used for displaying, and thus we
// are allowed to make cosmetic improvements. For instance make footnotes
// smaller. (Asger)

does this really hold water? Isn't the LaTeX created by LaTeX itself,
and not by LyX, and so... why not unify the two getFont routines?

And then additionally there are two sets of getLabelFont, getLayoutFont,
doing parts of what getFont is doing. Can this not be sanitized somehow?

- Martin

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to