>>> See ticket http://www.lyx.org/trac/ticket/6920

> There are three solutions:
> 
> 1) compute the metrics 8 times for a word of 8 letters
> 2) draw letter by letter all the times.
> 3) or rely on more on Qt widgets (i.e. use QTextEdit) instead on doing 
> our thing.
> 
> 1) would be costly in terms of performance

But aren't we in the times of "bored cores"? Technically it is
the simplest solution which should be possible for 2.0 without
waiting until Christmas 2011. We could make this 8 time calculation
optional which is only enabled by default on Mac.

> 2) would add be need a bit more cpu and would have the side effect that 
> kerning would not be as good Qt's word drawing. This is what we do 
> already for arabic and hebrew.

Disabling the optimal kerning doesn't sound good.

> 3) is a very big task and an entirely unknown territory. Our pixmap 
> backend is very fast and has been optimized through the years... I am 
> not sure we can get achieve the same performance with QTextEdit for a 
> 1000 pages of rich text.

The cleanest solution. I assume we can use a QTextEdit until an insert
comes where we have to insert that pixmap and then to write the
following text in the next QTextEdit, or I'm wrong.

> 
> So, all in all, I vote for (2) as an lyxrc option. That is the easiest 
> to implement and offers the best tradeoff between performance and beauty.
> 
> Abdel.
> 
> 

Reply via email to